/* ── King Power Mahanakhon SkyWalk — Stylesheet ── */

:root {
  /* Brand Colors — Mahanakhon (Tower/Observation) */
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --primary-light: #2a5a8c;
  --accent: #D29F13;
  --accent-dark: #B8860B;
  --gold: #D29F13;
  --red: #D32F2F;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafafa;
  --cream: #f5f5f5;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --black: #0a0a0a;

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --container: 1200px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --duration: .3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.al-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Promo Banner ── */
.al-promo {
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.al-promo__discount {
  background: var(--accent);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.al-promo__timer {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.15);
  padding: 2px 10px;
  border-radius: 4px;
}

/* ── Header ── */
.al-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}
.al-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.al-header__logo img { height: 56px; width: auto; }
.al-header__nav {
  display: flex;
  gap: 24px;
}
.al-header__link {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}
.al-header__link:hover,
.al-header__link--active { color: var(--white); }
.al-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.al-lang-btn {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.al-lang-btn:hover { background: rgba(255,255,255,.25); }

/* Hamburger */
.al-header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.al-header__menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

/* Mobile Nav */
.al-mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  background: var(--primary-dark);
}
.al-mobile-nav.active { display: flex; }
.al-mobile-nav__link {
  color: rgba(255,255,255,.8);
  padding: 10px 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* ── Buttons ── */
.al-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.al-btn--primary {
  background: var(--accent);
  color: var(--white);
}
.al-btn--primary:hover { filter: brightness(1.1); }
.al-btn--sm { padding: 10px 20px; font-size: .9rem; }
.al-btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ── Hero ── */
.al-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.al-hero__bg {
  position: absolute;
  inset: 0;
}
.al-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.al-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,38,64,.85) 0%, rgba(26,58,92,.6) 50%, rgba(0,0,0,.4) 100%);
}
.al-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 800px;
}
.al-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.al-hero__title {
  color: var(--white);
  margin-bottom: 16px;
}
.al-hero__title span:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}
.al-hero__title span:last-child {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  opacity: .85;
  margin-top: 8px;
}
.al-hero__subtitle {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 600px;
}
.al-hero__cta { margin-bottom: 28px; }
.al-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.al-hero__feature {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 500;
}
.al-hero__feature svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ── Sections ── */
.al-section {
  padding: 80px 0;
}
.al-section--alt { background: var(--cream); }
.al-section__header {
  text-align: center;
  margin-bottom: 48px;
}
.al-section__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.al-section__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.al-section__subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Ticket Cards ── */
.al-tickets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.al-ticket {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}
.al-ticket:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.al-ticket__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}
.al-ticket__discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  z-index: 2;
}
.al-ticket__image {
  height: 180px;
  overflow: hidden;
}
.al-ticket__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.al-ticket:hover .al-ticket__image img {
  transform: scale(1.05);
}
.al-ticket__body { padding: 20px; }
.al-ticket__icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.al-ticket__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.al-ticket__desc {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.5;
}
.al-ticket__features {
  list-style: none;
  margin-bottom: 16px;
}
.al-ticket__feature {
  font-size: .8rem;
  color: var(--gray-700);
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}
.al-ticket__feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.al-ticket__pricing {
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 12px;
}
.al-ticket__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.al-ticket__price-label {
  font-size: .85rem;
  color: var(--gray-500);
}
.al-ticket__price-original {
  text-decoration: line-through;
  color: #999;
  font-size: .85rem;
  margin-right: 6px;
}
.al-ticket__price-current {
  color: var(--red);
  font-weight: 800;
  font-size: 1.2rem;
}
.al-ticket__cta {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.al-ticket__cta:hover { filter: brightness(1.1); }

/* ── Experiences ── */
.al-experiences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.al-experience {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease);
}
.al-experience:hover { transform: translateY(-4px); }
.al-experience__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
}
.al-experience__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.al-experience__desc {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── Benefits ── */
.al-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.al-benefit {
  text-align: center;
  padding: 28px 20px;
}
.al-benefit__icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}
.al-benefit__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.al-benefit__desc {
  font-size: .85rem;
  color: var(--gray-500);
}

/* ── How It Works ── */
.al-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.al-step { text-align: center; padding: 20px; }
.al-step__number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.al-step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.al-step__desc {
  font-size: .85rem;
  color: var(--gray-500);
}

/* ── CTA Section ── */
.al-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
}
.al-cta__title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.al-cta__subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.al-cta__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-top: 16px;
}

/* ── Footer ── */
.al-footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}
.al-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.al-footer__heading {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.al-footer__link {
  display: block;
  font-size: .85rem;
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}
.al-footer__link:hover { color: var(--accent); }
.al-footer__text {
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: 6px;
}
.al-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.al-footer__copy { font-size: .8rem; }
.al-footer__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ── Animations ── */
.al-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.al-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Modal Overlay ── */
.al-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.al-modal-overlay.active { display: flex; }

/* Modal Container */
.al-modal {
  background: var(--white);
  border-radius: 16px;
  width: 90vw;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}

/* Modal Header */
.al-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.al-modal__header h2 { margin: 0; font-size: 1.15rem; }
.al-modal__header small { color: #888; font-size: .8rem; }
.al-modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  line-height: 1;
}
.al-modal__timer {
  background: var(--red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .8rem;
}

/* Modal Body */
.al-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Left Panel */
.al-modal__left {
  padding: 16px;
  border-right: 1px solid #eee;
  max-height: 65vh;
  overflow-y: auto;
}

/* Tabs */
.al-modal__tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.al-modal__tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;
  font-size: .78rem;
  font-family: var(--font-primary);
  transition: all .2s;
}
.al-modal__tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.al-modal__tab svg { width: 14px; height: 14px; }

/* Ticket Rows */
.al-modal__ticket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.al-modal__ticket-info h4 { margin: 0 0 2px; font-size: .82rem; }
.al-original {
  text-decoration: line-through;
  color: #999;
  font-size: .78rem;
  margin-right: 4px;
}
.al-price { color: var(--red); font-weight: 700; font-size: .85rem; }
.al-free { color: var(--primary); font-weight: 700; }

/* Quantity Controls */
.al-modal__qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.al-modal__qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
}
.al-modal__qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: .85rem; }

/* Right Panel */
.al-modal__right {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.al-modal__section-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}
.al-modal__section-label svg { width: 14px; height: 14px; }
.al-modal__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.al-modal__form-group { margin-bottom: 8px; }
.al-modal__form-group label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3px;
}
.al-modal__form-group input,
.al-modal__form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: .85rem;
  font-family: var(--font-primary);
}

/* Total */
.al-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 2px solid #eee;
  margin-top: 6px;
}
.al-modal__total-label { font-weight: 600; font-size: .9rem; }
.al-modal__total-amount { font-size: 1.3rem; font-weight: 800; }
.al-modal__total-saved {
  display: block;
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
}

/* Pay Button */
.al-modal__pay-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: var(--font-primary);
  transition: background .2s;
}
.al-modal__pay-btn:hover { filter: brightness(1.1); }

/* Secure Badge */
.al-modal__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .7rem;
  color: #999;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .al-tickets { grid-template-columns: repeat(2, 1fr); }
  .al-experiences { grid-template-columns: repeat(2, 1fr); }
  .al-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .al-header__nav { display: none; }
  .al-header__actions .al-btn { display: none; }
  .al-header__menu { display: flex; }

  .al-hero__title span:first-child { font-size: 2rem; }
  .al-hero__title span:last-child { font-size: 1rem; }
  .al-hero__content { padding: 50px 20px; }
  .al-hero { min-height: 480px; }

  .al-tickets { grid-template-columns: 1fr; }
  .al-experiences { grid-template-columns: 1fr; }
  .al-benefits { grid-template-columns: repeat(2, 1fr); }
  .al-steps { grid-template-columns: repeat(2, 1fr); }

  .al-section { padding: 50px 0; }
  .al-section__title { font-size: 1.6rem; }

  .al-modal__body { grid-template-columns: 1fr; }
  .al-modal__left { border-right: none; border-bottom: 1px solid #eee; max-height: 40vh; }
  .al-modal { max-height: 95vh; }

  .al-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .al-promo { font-size: .75rem; padding: 8px 12px; }
  .al-hero__title span:first-child { font-size: 1.6rem; }
  .al-hero__features { gap: 10px; }
  .al-hero__feature { font-size: .78rem; }
  .al-benefits { grid-template-columns: 1fr; }
  .al-steps { grid-template-columns: 1fr; }
  .al-cta__title { font-size: 1.4rem; }
  .al-btn--lg { padding: 14px 24px; font-size: .95rem; }
}
