/* Private Events page-owned styles */

#private-events-page {
  --pe-section-pad-mobile: var(--space-64);
  --pe-section-pad-desktop: var(--space-96);
  --pe-gap-mobile: var(--space-16);
  --pe-gap-tablet: var(--space-24);
  --pe-gap-desktop: var(--space-32);
  --pe-grid-gutter-mobile: var(--space-16);
  --pe-grid-gutter-tablet: var(--space-24);
  --pe-grid-gutter-desktop: var(--space-32);
}

#private-events-page .section {
  padding-block: var(--pe-section-pad-mobile);
}

#private-events-page .container {
  max-width: var(--container-max);
}

/* Section heading */
.pe-section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-end: var(--space-32);
  max-width: 720px;
}

.pe-section-heading .caption {
  margin-block-end: 0;
}

.pe-section-heading h2 {
  margin-block-end: 0;
}

/* Hero */
.pe-hero {
  border-block-end: 1px solid var(--color-line);
}

.pe-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.pe-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: 800px;
}

.pe-hero__content .caption {
  margin-block-end: 0;
}

.pe-hero__content h1 {
  margin-block-end: 0;
  font-size: clamp(2.125rem, 1.6rem + 2.4vw, 2.75rem);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-letter-spacing);
  font-weight: var(--text-h1-weight);
  text-transform: uppercase;
}

.pe-hero__lead {
  max-width: 68ch;
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  font-weight: var(--text-body-large-weight);
  margin-block-end: 0;
}

.pe-hero__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 68ch;
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  list-style: disc;
}

.pe-hero__list li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.pe-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-block-start: var(--space-8);
}

.pe-hero__actions .btn {
  min-width: 220px;
}

/* Why section */
.pe-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pe-grid-gutter-mobile);
}

.pe-benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
  padding: var(--space-24);
}

.pe-benefit-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.pe-benefit-card__status .caption {
  margin-block-end: 0;
}

.pe-benefit-card h3 {
  margin-block-end: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  text-transform: uppercase;
}

.pe-benefit-card p {
  margin-block-end: 0;
  max-width: 60ch;
}

.pe-benefit-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  list-style: disc;
}

.pe-benefit-card__list li {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* Formats table */
.pe-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-default);
}

.pe-formats-table,
.pe-pricing-table {
  min-width: 720px;
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.pe-formats-table th,
.pe-formats-table td,
.pe-pricing-table th,
.pe-pricing-table td {
  padding: var(--space-16);
  border-block-end: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.pe-formats-table thead th,
.pe-pricing-table thead th {
  background-color: var(--color-ink);
  color: var(--color-chalk);
  font-family: var(--font-heading);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  font-weight: var(--text-caption-weight);
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.pe-formats-table tbody tr:nth-child(even),
.pe-pricing-table tbody tr:nth-child(even) {
  background-color: var(--color-bone);
}

.pe-formats-table tbody tr:hover,
.pe-pricing-table tbody tr:hover {
  background-color: var(--color-felt-soft);
}

.pe-formats-table__featured,
.pe-pricing-table__featured {
  background-color: var(--color-clay-soft);
}

.pe-formats-table tbody th,
.pe-pricing-table tbody th {
  font-family: var(--font-heading);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  letter-spacing: var(--text-h4-letter-spacing);
  font-weight: var(--text-h4-weight);
  text-transform: uppercase;
  color: var(--color-ink);
}

.pe-formats-table td,
.pe-pricing-table td {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-ink);
}

.pe-formats-table .badge,
.pe-pricing-table .badge {
  margin-inline-end: var(--space-8);
}

/* Card room split */
.pe-card-room__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pe-grid-gutter-mobile);
  align-items: start;
}

.pe-card-room__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.pe-card-room__text .caption {
  margin-block-end: 0;
}

.pe-card-room__text h2 {
  margin-block-end: 0;
}

.pe-card-room__lead {
  margin-block-end: 0;
  max-width: 68ch;
}

.pe-card-room__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  list-style: disc;
  max-width: 60ch;
}

.pe-card-room__list li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.pe-card-room__media {
  min-width: 0;
}

.pe-card-room__media .media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-default);
  overflow: hidden;
}

.pe-card-room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Equipment section */
.pe-equipment__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pe-grid-gutter-mobile);
}

.pe-equipment-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
  padding: var(--space-24);
}

.pe-equipment-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.pe-equipment-card__status .caption {
  margin-block-end: 0;
}

.pe-equipment-card h3 {
  margin-block-end: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  text-transform: uppercase;
}

.pe-equipment-card p {
  margin-block-end: 0;
  max-width: 60ch;
}

.pe-equipment-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  list-style: disc;
}

.pe-equipment-card__list li {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
}

/* Dining split */
.pe-dining__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pe-grid-gutter-mobile);
  align-items: start;
}

.pe-dining__media {
  min-width: 0;
}

.pe-dining__media .media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-default);
  overflow: hidden;
}

.pe-dining__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-dining__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.pe-dining__text .caption {
  margin-block-end: 0;
}

.pe-dining__text h2 {
  margin-block-end: 0;
}

.pe-dining__lead {
  margin-block-end: 0;
  max-width: 68ch;
}

.pe-dining__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  list-style: disc;
  max-width: 60ch;
}

.pe-dining__list li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

/* Pricing table */
.pe-pricing-table {
  min-width: 760px;
}

.pe-pricing-table thead th {
  background-color: var(--color-slate);
}

/* Booking */
.pe-booking__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: 800px;
}

.pe-booking__inner .caption {
  margin-block-end: 0;
}

.pe-booking__inner h2 {
  margin-block-end: 0;
}

.pe-booking__lead {
  margin-block-end: 0;
  max-width: 68ch;
}

.pe-booking__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-block-end: 0;
  padding-inline-start: var(--space-24);
  list-style: disc;
  max-width: 60ch;
}

.pe-booking__list li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.pe-booking__list a {
  color: var(--color-clay);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pe-booking__list a:hover {
  color: #B03629;
}

.pe-booking__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-block-start: var(--space-8);
}

.pe-booking__actions .btn {
  min-width: 220px;
}

/* Tablet and desktop */
@media (min-width: 768px) {
  #private-events-page .section {
    padding-block: var(--pe-section-pad-desktop);
  }

  .pe-section-heading {
    margin-block-end: var(--space-48);
  }

  .pe-why__grid,
  .pe-equipment__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pe-grid-gutter-tablet);
  }

  .pe-card-room__grid,
  .pe-dining__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--pe-grid-gutter-tablet);
  }

  .pe-dining__grid {
    grid-template-columns: 5fr 7fr;
  }

  .pe-dining__media {
    order: 1;
  }

  .pe-dining__text {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .pe-why__grid,
  .pe-equipment__grid {
    gap: var(--pe-grid-gutter-desktop);
  }

  .pe-card-room__grid,
  .pe-dining__grid {
    gap: var(--pe-grid-gutter-desktop);
  }
}

@media (prefers-reduced-motion: reduce) {
  #private-events-page .card--interactive,
  #private-events-page .btn {
    transition: none;
  }

  #private-events-page .card--interactive:hover {
    transform: none;
  }
}
