/**
 * @file
 * Bốn trang vé tham quan (/attractions, /attractions/{siteCode}, /attractions/book, /attraction-booking/{id}), cùng ngôn ngữ hình ảnh trang golf.
 */

.page--attraction {
  background: #faf7f2;
}

.vnat-app.at-app {
  --at-warm: #faf7f2;
  --at-warm-2: #f3eee6;
  --at-line: #e4ddd3;
  --at-ink: #1e1b18;
  --at-muted: #625b53;
  --at-navy: #0c2340;
  --at-primary: #8b1d1d;
  --at-deep: #6a0109;
  --at-green: #216e49;
  --at-error: #b42318;
  --at-sans: 'Noto Sans', Arial, sans-serif;
  --at-serif: 'Noto Serif', Georgia, serif;
  display: flow-root;
  max-width: none;
  margin: 0;
  padding: 0 0 64px;
  font-family: var(--at-sans);
  color: var(--at-navy);
}

.at-app *,
.at-app *::before,
.at-app *::after {
  box-sizing: border-box;
}

.at-app [hidden] {
  display: none !important;
}

.at-app .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal;
}

.at-hero {
  padding: 48px 16px 32px;
  background: linear-gradient(180deg, #0c2340 0%, #16385f 100%);
  color: #fff;
}

.at-hero__inner,
.at-wrap {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
}

.at-hero__title {
  margin: 0;
  font-family: var(--at-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
}

.at-hero__sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.at-wrap {
  padding: 24px 16px 0;
}

.at-skeleton {
  min-height: 320px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--at-warm-2) 25%, #fff 50%, var(--at-warm-2) 75%);
  background-size: 200% 100%;
  animation: at-shimmer 1.4s infinite linear;
}

@keyframes at-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-skeleton {
    animation: none;
  }
}

.at-hero__sub[hidden] {
  display: none;
}

.at-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.at-back::before {
  content: '‹ ';
}

.at-back:hover,
.at-back:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1.2 var(--at-sans);
  text-decoration: none;
  cursor: pointer;
}

.at-btn--primary {
  background: var(--at-primary);
  color: #fff;
}

.at-btn--primary:hover {
  background: var(--at-deep);
}

.at-btn--ghost {
  background: #fff;
  border-color: var(--at-line);
  color: var(--at-navy);
}

.at-btn--ghost:hover {
  border-color: var(--at-navy);
}

.at-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.at-btn:focus-visible,
.at-input:focus-visible,
.at-app a:focus-visible,
.at-app input[type="radio"]:focus-visible {
  outline: 2px solid var(--at-navy);
  outline-offset: 2px;
}

.at-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--at-line);
  border-radius: 10px;
  background: #fff;
  font: 400 15px/1.3 var(--at-sans);
  color: var(--at-ink);
}

.at-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--at-muted);
}

.at-h2 {
  margin: 0 0 12px;
  font-family: var(--at-serif);
  font-size: 22px;
  font-weight: 600;
}

.at-status {
  margin: 12px 0;
  color: var(--at-muted);
}

.at-error {
  margin: 12px 0 0;
  color: var(--at-error);
}

.at-note {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--at-warm-2);
  color: var(--at-muted);
}

.at-link {
  color: var(--at-primary);
  font-weight: 600;
}

.at-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.at-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--at-line);
  border-radius: 16px;
  background: #fff;
}

.at-card--skeleton {
  min-height: 140px;
  border: 0;
  background: linear-gradient(90deg, var(--at-warm-2) 25%, #fff 50%, var(--at-warm-2) 75%);
  background-size: 200% 100%;
  animation: at-shimmer 1.4s infinite linear;
}

.at-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.at-card__title {
  margin: 0;
  font-family: var(--at-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.at-card__title a {
  color: var(--at-navy);
  text-decoration: none;
}

.at-card__title a:hover {
  text-decoration: underline;
}

.at-card__cta {
  align-self: flex-start;
  margin-top: auto;
}

.at-empty {
  margin: 32px 0;
  padding: 32px 16px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.at-empty__title {
  margin: 0 0 8px;
  font-family: var(--at-serif);
  font-size: 22px;
}

.at-empty__text {
  margin: 0 0 16px;
  color: var(--at-muted);
}

.at-empty .at-btn[hidden] {
  display: none;
}

.at-panel {
  padding: 24px;
  border: 1px solid var(--at-line);
  border-radius: 16px;
  background: #fff;
}

.at-field[hidden] {
  display: none;
}

.at-usd {
  display: block;
  font-size: 13px;
  color: var(--at-muted);
}

.at-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, calc((100% - 1232px) / 2 + 16px));
  border-top: 1px solid var(--at-line);
  background: #fff;
  box-shadow: 0 -4px 16px rgba(12, 35, 64, 0.08);
}

.at-cta[hidden] {
  display: none;
}

.vnat-app.at-app.at-has-cta {
  padding-bottom: 120px;
}

.at-cta__summary {
  margin: 0;
  font-weight: 600;
}

.at-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--at-muted);
}

.at-hint[hidden],
.at-error[hidden] {
  display: none;
}

.at-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.at-book__main {
  display: grid;
  gap: 24px;
}

.at-book__submit {
  width: 100%;
  margin-top: 16px;
}

.at-book__submit[hidden] {
  display: none;
}

.at-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.at-field--narrow {
  max-width: 240px;
}

.at-players {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.at-player {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--at-line);
  border-radius: 12px;
}

.at-player__title {
  margin: 0;
  padding: 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.at-copy {
  margin-top: 8px;
}

.at-copy[hidden] {
  display: none;
}

.at-check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.at-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--at-primary);
}

.at-check label {
  flex: 1;
  line-height: 1.5;
}

.at-check .at-err {
  flex-basis: 100%;
}

.at-err {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--at-error);
}

.at-input[aria-invalid="true"] {
  border-color: var(--at-error);
}

.at-summary {
  position: sticky;
  top: 16px;
}

.at-summary__list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.at-summary__list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.at-summary__list dt {
  color: var(--at-muted);
}

.at-summary__list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.at-summary__line {
  display: block;
}

.at-summary__line + .at-summary__line {
  margin-top: 4px;
}

.at-summary__list div[hidden] {
  display: none;
}

.at-status-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.at-state__title {
  margin: 0;
  font-family: var(--at-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--at-ink);
}

.at-state__text {
  margin: 8px 0 0;
  line-height: 1.5;
  color: var(--at-muted);
}

.at-clock {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--at-warm-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--at-primary);
}

.at-h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.at-codes {
  margin: 16px 0 0;
}

.at-codes div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.at-codes dt {
  color: var(--at-muted);
}

.at-codes dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--at-green);
}

.at-lines,
.at-checkins {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-lines li,
.at-checkins li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  overflow-wrap: anywhere;
}

.at-lines__value {
  color: var(--at-muted);
}

.at-checkins .at-lines__value {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--at-green);
}

.at-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.at-confirm {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  background: var(--at-warm);
}

.at-confirm p {
  margin: 0;
  font-weight: 600;
}

.at-confirm .at-actions {
  margin-top: 12px;
}

.at-site {
  display: grid;
  gap: 24px;
}

.at-skeleton--short {
  min-height: 160px;
}

.at-rates {
  display: grid;
  gap: 24px;
}

.at-rate__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.at-services,
.at-sessions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-service,
.at-session {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid var(--at-warm-2);
}

.at-session {
  grid-template-columns: 24px minmax(0, 1fr);
}

.at-service input,
.at-session input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--at-primary);
}

.at-service.is-selected,
.at-session.is-selected {
  background: #fdf3f3;
}

.at-service.is-off {
  opacity: 0.55;
}

.at-service__label,
.at-session__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.at-service.is-off .at-service__label {
  cursor: not-allowed;
}

.at-service__name {
  font-weight: 600;
}

.at-service__tag,
.at-session__meta,
.at-session__left {
  font-size: 13px;
  color: var(--at-muted);
}

.at-service__price {
  text-align: right;
}

.at-session__time {
  font-size: 17px;
}

.at-groups {
  display: grid;
  gap: 20px;
}

.at-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.at-group__title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
}

.at-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.at-qty__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--at-line);
  border-radius: 999px;
  background: #fff;
  font: 600 20px/1 var(--at-sans);
  color: var(--at-navy);
  cursor: pointer;
}

.at-qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.at-qty__btn:focus-visible {
  outline: 2px solid var(--at-navy);
  outline-offset: 2px;
}

.at-qty__input {
  width: 72px;
  text-align: center;
}

.at-cta__note {
  margin: 0;
  color: var(--at-muted);
}

@media (max-width: 991.98px) {
  .at-book,
  .at-status-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .at-summary {
    position: static;
    order: -1;
  }

  .at-status-page .at-summary {
    order: 0;
  }

  .at-cta {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .vnat-app.at-app.at-has-cta {
    padding-bottom: 220px;
  }
}

@media (max-width: 720px) {
  .at-panel {
    padding: 16px;
  }

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

  .at-field--narrow {
    max-width: none;
  }

  .at-service {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .at-service__price {
    grid-column: 2;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-card--skeleton {
    animation: none;
  }
}
