/* Table Nights page-owned styles */

#table-nights-main {
  display: block;
}

/* Section headings */
.tn-section-heading {
  margin-block-end: var(--space-xl);
}

.tn-section-heading h2 {
  margin-block-end: var(--space-sm);
}

.tn-section-heading--dark .eyebrow {
  color: var(--color-aged-brass);
}

.tn-section-intro {
  max-width: 68ch;
  margin-inline: 0;
  font-size: 20px;
  line-height: 1.6;
}

/* Hero */
.tn-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-atlantic-navy);
}

.tn-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tn-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: grayscale(30%) sepia(12%) contrast(0.95) brightness(0.7);
}

.tn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 19, 32, 0.88) 0%, rgba(8, 19, 32, 0.45) 45%, rgba(8, 19, 32, 0.15) 100%);
}

.tn-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block-end: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.tn-hero__title {
  max-width: 560px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.0;
  color: var(--color-limestone);
  margin-block-end: 0;
}

.tn-hero__copy {
  max-width: 560px;
  color: var(--color-limestone);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-hero__copy p {
  font-size: 20px;
  line-height: 1.6;
  margin-block-end: 0;
}

.tn-hero__facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-hero__facts li {
  position: relative;
  padding-inline-start: var(--space-lg);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-limestone);
}

.tn-hero__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background-color: var(--color-aged-brass);
}

/* Schedule */
.tn-schedule {
  background-color: var(--color-limestone);
}

.tn-schedule__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 10fr);
  gap: var(--space-lg);
  align-items: start;
}

.tn-schedule__coords {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-block-start: var(--space-md);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--color-fog-grey);
}

.tn-schedule__table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.tn-schedule__table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: 0;
  font-size: 17px;
  line-height: 1.5;
}

.tn-schedule__table thead th {
  position: sticky;
  top: 0;
  background-color: var(--color-limestone);
  z-index: 1;
  border-block-end: 2px solid rgba(140, 147, 160, 0.4);
  padding-block: var(--space-sm);
  text-align: start;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-dark-walnut);
}

.tn-schedule__table tbody tr {
  transition: background-color var(--transition-fast);
}

.tn-schedule__table tbody tr:hover {
  background-color: var(--color-limestone-warm);
}

.tn-schedule__table tbody th,
.tn-schedule__table tbody td {
  border-block-end: 1px solid rgba(140, 147, 160, 0.4);
  padding-block: var(--space-md);
  vertical-align: middle;
}

.tn-schedule__table tbody th {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark-walnut);
  text-align: start;
}

.tn-schedule__table tbody td {
  color: var(--color-dark-walnut);
}

.tn-status {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-tag);
  border: 1px solid transparent;
}

.tn-status--available {
  color: var(--color-dark-walnut);
  border-color: rgba(140, 147, 160, 0.4);
}

.tn-status--limited {
  color: var(--color-muted-burgundy);
  border-color: rgba(110, 42, 51, 0.4);
}

.tn-status--waitlist {
  color: var(--color-fog-grey);
  border-color: rgba(140, 147, 160, 0.4);
}

.tn-btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: 13px;
  white-space: nowrap;
}

/* Formats */
.tn-formats {
  background-color: var(--color-limestone);
}

.tn-formats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.tn-format-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--transition-fast);
}

.tn-format-card:hover {
  border-color: var(--color-aged-brass);
}

.tn-format-card h3 {
  margin-block-end: 0;
}

.tn-format-card p {
  margin-block-end: 0;
  max-width: 55ch;
}

.tn-format-card__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-format-card__list li {
  position: relative;
  padding-inline-start: var(--space-md);
  font-size: 16px;
  line-height: 1.5;
}

.tn-format-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background-color: var(--color-aged-brass);
}

/* Parlour */
.tn-parlour {
  background-color: var(--color-atlantic-navy);
}

.tn-parlour__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.tn-parlour__media {
  grid-column: 1 / span 5;
  min-width: 0;
  margin-block-end: 0;
}

.tn-parlour__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(25%) sepia(10%) contrast(0.95) brightness(0.8);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 12px;
}

.tn-parlour__content {
  grid-column: 7 / span 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--color-limestone);
}

.tn-parlour__content h2 {
  margin-block-end: 0;
  max-width: 60ch;
}

.tn-parlour__content p {
  margin-block-end: 0;
  max-width: 60ch;
}

.tn-parlour__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-parlour__list li {
  position: relative;
  padding-inline-start: var(--space-md);
}

.tn-parlour__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background-color: var(--color-aged-brass);
}

.tn-parlour__address {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-aged-brass);
}

/* Rules */
.tn-rules {
  background-color: var(--color-deep-navy);
}

.tn-rules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  position: relative;
}

.tn-rules__grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(201, 162, 39, 0.3);
  transform: translateX(-50%);
}

.tn-rules__column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-rules__column h3 {
  margin-block-end: 0;
  color: var(--color-limestone);
}

.tn-rules__column p {
  margin-block-end: 0;
  max-width: 50ch;
  color: var(--color-limestone);
}

.tn-rules__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-rules__list li {
  position: relative;
  padding-inline-start: var(--space-md);
  color: var(--color-limestone);
}

.tn-rules__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background-color: var(--color-aged-brass);
}

/* Request */
.tn-request {
  background-color: var(--color-limestone);
}

.tn-request__panel {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-request__panel h2 {
  margin-block-end: 0;
}

.tn-request__panel > p {
  margin-block-end: 0;
  max-width: 60ch;
}

.tn-request__notes {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-request__notes li {
  position: relative;
  padding-inline-start: var(--space-md);
  font-size: 16px;
  line-height: 1.5;
}

.tn-request__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background-color: var(--color-aged-brass);
}

.tn-request__form {
  margin-block-end: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.tn-request__field {
  min-width: 0;
}

.tn-request__field--full {
  grid-column: 1 / -1;
}

.tn-request__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.tn-request__helper {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-fog-grey);
  margin-block-end: 0;
}

.tn-request__success {
  grid-column: 1 / -1;
  padding: var(--space-md);
  background-color: var(--color-limestone-warm);
  border: 1px solid var(--color-aged-brass);
  color: var(--color-dark-walnut);
  margin-block-end: 0;
}

/* Responsible */
.tn-responsible {
  background-color: var(--color-deep-navy);
}

.tn-responsible__callout {
  max-width: 800px;
  margin-inline: auto;
  border-inline-start: 2px solid var(--color-muted-burgundy);
  padding-inline-start: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-responsible__callout h3 {
  margin-block-end: 0;
  color: var(--color-limestone);
}

.tn-responsible__callout p {
  margin-block-end: 0;
  max-width: 55ch;
  color: var(--color-limestone);
}

.tn-responsible__callout a {
  color: var(--color-aged-brass);
}

.tn-responsible__notes {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-responsible__notes li {
  position: relative;
  padding-inline-start: var(--space-md);
  color: var(--color-limestone);
  font-size: 16px;
  line-height: 1.5;
}

.tn-responsible__notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background-color: var(--color-aged-brass);
}

/* Final CTA */
.tn-final {
  background-color: var(--color-atlantic-navy);
  background-image: linear-gradient(to bottom, rgba(242, 197, 124, 0.08), transparent 30%);
}

.tn-final__content {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.tn-final__content h2 {
  margin-block-end: 0;
  color: var(--color-limestone);
}

.tn-final__content p {
  margin-block-end: 0;
  max-width: 60ch;
  color: var(--color-limestone);
}

.tn-final__notes {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tn-final__notes li {
  color: var(--color-limestone);
  font-size: 16px;
  line-height: 1.5;
}

.tn-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* Reveal animation */
.tn-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.tn-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tn-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
  .tn-hero {
    min-height: 60vh;
  }

  .tn-hero__content {
    padding-block-end: var(--space-xl);
  }

  .tn-schedule__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .tn-schedule__coords {
    display: none;
  }

  .tn-formats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .tn-parlour__grid {
    gap: var(--space-md);
  }

  .tn-parlour__media {
    grid-column: 1 / span 6;
  }

  .tn-parlour__content {
    grid-column: 7 / span 6;
  }

  .tn-rules__grid {
    gap: var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tn-hero {
    min-height: 60vh;
    align-items: flex-end;
  }

  .tn-hero__content {
    padding-block-end: var(--space-xl);
    padding-inline: var(--container-pad-mobile);
    gap: var(--space-sm);
  }

  .tn-hero__title {
    font-size: 40px;
    max-width: 100%;
  }

  .tn-hero__copy {
    max-width: 100%;
  }

  .tn-hero__copy p {
    font-size: 17px;
  }

  .tn-section-heading {
    margin-block-end: var(--space-lg);
  }

  .tn-section-intro {
    font-size: 17px;
  }

  .tn-schedule__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .tn-schedule__coords {
    display: none;
  }

  .tn-schedule__table-wrap {
    overflow-x: visible;
  }

  .tn-schedule__table,
  .tn-schedule__table thead,
  .tn-schedule__table tbody,
  .tn-schedule__table tr,
  .tn-schedule__table th,
  .tn-schedule__table td {
    display: block;
    width: 100%;
  }

  .tn-schedule__table thead {
    display: none;
  }

  .tn-schedule__table tbody tr {
    border-block-start: 1px solid rgba(140, 147, 160, 0.4);
    padding-block: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs) var(--space-md);
  }

  .tn-schedule__table tbody th {
    grid-column: 1 / -1;
    font-size: 20px;
    border-block-end: none;
    padding-block: 0;
  }

  .tn-schedule__table tbody td {
    border-block-end: none;
    padding-block: 0;
    font-size: 16px;
  }

  .tn-schedule__table tbody td:nth-of-type(1)::before {
    content: 'Date: ';
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-fog-grey);
  }

  .tn-schedule__table tbody td:nth-of-type(2)::before {
    content: 'Start: ';
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-fog-grey);
  }

  .tn-schedule__table tbody td:nth-of-type(3)::before {
    content: 'Buy-in: ';
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-fog-grey);
  }

  .tn-schedule__table tbody td:nth-of-type(4)::before {
    content: 'Stack: ';
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-fog-grey);
  }

  .tn-schedule__table tbody td:nth-of-type(5) {
    grid-column: 1 / -1;
  }

  .tn-schedule__table tbody td:nth-of-type(6) {
    grid-column: 1 / -1;
  }

  .tn-schedule__table tbody td:last-child {
    grid-column: 1 / -1;
  }

  .tn-btn-small {
    width: 100%;
    text-align: center;
  }

  .tn-formats__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .tn-parlour__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .tn-parlour__media,
  .tn-parlour__content {
    grid-column: 1 / -1;
  }

  .tn-parlour__content {
    padding-inline: var(--container-pad-mobile);
  }

  .tn-rules__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .tn-rules__grid::before {
    display: none;
  }

  .tn-rules__column {
    padding-block-end: var(--space-lg);
    border-block-end: 1px solid rgba(201, 162, 39, 0.3);
  }

  .tn-rules__column:last-child {
    padding-block-end: 0;
    border-block-end: none;
  }

  .tn-request__panel {
    padding: var(--space-md);
  }

  .tn-request__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .tn-request__field--full {
    grid-column: 1 / -1;
  }

  .tn-request__actions {
    width: 100%;
  }

  .tn-request__actions .btn {
    width: 100%;
  }

  .tn-responsible__callout {
    padding-inline-start: var(--space-md);
  }

  .tn-final__content {
    padding-inline: var(--container-pad-mobile);
  }

  .tn-final__actions {
    flex-direction: column;
    width: 100%;
  }

  .tn-final__actions .btn {
    width: 100%;
  }
}
