/* Edinburgh Castle Tickets — Stylesheet */
/* ── Variables ── */
:root {
  --primary: #A61F29;
  --primary-dark: #8B1A22;
  --primary-light: #C42531;
  --secondary: #007994;
  --accent: #D7C482;
  --accent-dark: #C4AD5F;
  --gold: #D7C482;
  --red: #A61F29;
  --white: #ffffff;
  --off-white: #fafafa;
  --cream: #f5f5f0;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --black: #0a0a0a;
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --container: 1200px;
  --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);
  --ease: cubic-bezier(.4,0,.2,1);
  --duration: .3s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--gray-900); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── Container ── */
.al-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.al-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  transition: all var(--duration) var(--ease);
}
.al-btn--primary { background: var(--primary); color: var(--white); }
.al-btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.al-btn--sm { padding: 8px 20px; font-size: .85rem; }
.al-btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Promo Banner ── */
.al-promo {
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; font-size: .85rem; font-weight: 600;
}
.al-promo__discount { background: var(--gold); color: var(--black); padding: 2px 10px; border-radius: 4px; font-weight: 800; }
.al-promo__timer { display: inline-flex; align-items: center; gap: 6px; }

/* ── Header ── */
.al-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,10,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.al-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.al-header__logo img { height: 48px; }
.al-header__nav { display: flex; gap: 28px; }
.al-header__link { color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; transition: color var(--duration); }
.al-header__link:hover, .al-header__link--active { color: var(--white); }
.al-header__actions { display: flex; align-items: center; gap: 12px; }
.al-lang-btn {
  background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: 6px; font-size: .8rem; font-weight: 700;
  transition: all var(--duration);
}
.al-lang-btn:hover { background: rgba(255,255,255,.2); }
.al-header__menu {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px;
}
.al-header__menu span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.al-header__mobile-nav {
  display: none; flex-direction: column; padding: 16px 24px; background: rgba(10,10,10,.95);
}
.al-header__mobile-nav.active { display: flex; }
.al-header__mobile-link { color: rgba(255,255,255,.8); padding: 10px 0; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ── Hero ── */
.al-hero { position: relative; min-height: 85vh; 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(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%); }
.al-hero__content { position: relative; z-index: 2; color: var(--white); max-width: 700px; padding: 80px 0; }
.al-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 24px; font-size: .85rem; font-weight: 600;
  margin-bottom: 20px;
}
.al-hero__title { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.al-hero__title span { display: block; }
.al-hero__title span:last-child { font-size: 1.8rem; font-weight: 400; color: var(--gold); margin-top: 4px; }
.al-hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.7; }
.al-hero__cta { margin-bottom: 32px; }
.al-hero__features { display: flex; flex-wrap: wrap; gap: 16px; }
.al-hero__feature { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.9); }
.al-hero__feature svg { width: 18px; height: 18px; color: var(--gold); 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: 8px;
  color: var(--primary); 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; 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(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.al-ticket {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--duration) var(--ease);
  position: relative;
}
.al-ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.al-ticket__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--primary); color: var(--white);
  padding: 4px 12px; border-radius: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
.al-ticket__discount {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--gold); color: var(--black);
  padding: 4px 10px; border-radius: 6px; font-size: .8rem; font-weight: 800;
}
.al-ticket__image { height: 200px; 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 { color: var(--primary); margin-bottom: 8px; }
.al-ticket__icon svg { width: 24px; height: 24px; }
.al-ticket__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.al-ticket__desc { font-size: .88rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.5; }
.al-ticket__features { margin-bottom: 16px; }
.al-ticket__feature {
  position: relative; padding-left: 20px; font-size: .85rem; color: var(--gray-700); margin-bottom: 6px;
}
.al-ticket__feature::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); opacity: .15;
}
.al-ticket__feature::after {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.al-ticket__pricing { padding: 12px 0; border-top: 1px solid var(--gray-200); margin-bottom: 16px; }
.al-ticket__price-row { display: flex; justify-content: space-between; align-items: center; }
.al-ticket__price-label { font-size: .85rem; color: var(--gray-500); font-weight: 500; }
.al-ticket__price-original { text-decoration: line-through; color: var(--gray-500); font-size: .85rem; margin-right: 8px; }
.al-ticket__price-current { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.al-ticket__cta {
  width: 100%; padding: 12px; background: var(--primary); color: var(--white);
  border: none; border-radius: 10px; font-size: .95rem; font-weight: 700;
  transition: all var(--duration) var(--ease);
}
.al-ticket__cta:hover { background: var(--primary-dark); }

/* ── Experiences ── */
.al-experiences { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.al-experience {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--duration) var(--ease);
}
.al-experience:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.al-experience__image { height: 220px; overflow: hidden; }
.al-experience__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.al-experience:hover .al-experience__image img { transform: scale(1.05); }
.al-experience__body { padding: 20px; }
.al-experience__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.al-experience__desc { font-size: .9rem; color: var(--gray-500); line-height: 1.6; }

/* ── Benefits ── */
.al-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.al-benefit { text-align: center; padding: 32px 24px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); transition: all var(--duration) var(--ease); }
.al-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.al-benefit__icon { color: var(--primary); margin-bottom: 16px; }
.al-benefit__icon svg { width: 36px; height: 36px; }
.al-benefit__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.al-benefit__desc { font-size: .88rem; color: var(--gray-500); line-height: 1.5; }

/* ── Steps ── */
.al-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.al-step { text-align: center; padding: 32px 24px; }
.al-step__number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 16px;
}
.al-step__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.al-step__desc { font-size: .88rem; color: var(--gray-500); line-height: 1.5; }

/* ── CTA Section ── */
.al-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); text-align: center; padding: 80px 0;
}
.al-cta-section__title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.al-cta-section__subtitle { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.al-cta-section .al-btn--primary { background: var(--gold); color: var(--black); }
.al-cta-section .al-btn--primary:hover { background: var(--accent-dark); }
.al-cta-section__timer { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.8); }

/* ── Footer ── */
.al-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.al-footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 32px; }
.al-footer__tagline { font-size: .9rem; margin-top: 12px; }
.al-footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.al-footer__heading { color: var(--white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.al-footer__col a, .al-footer__col p { display: block; font-size: .88rem; margin-bottom: 8px; transition: color var(--duration); }
.al-footer__col a:hover { color: var(--white); }
.al-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem;
}
.al-footer__badges { display: flex; align-items: center; gap: 8px; }

/* ── 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 24px; border-bottom: 1px solid #eee;
}
.al-modal__header h2 { margin: 0; font-size: 1.2rem; font-family: var(--font-display); }
.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;
}
.al-modal__timer {
  background: var(--red); color: #fff;
  padding: 4px 10px; 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 20px; border-right: 1px solid #eee; }

/* ── Tabs ── */
.al-modal__tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.al-modal__tab {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid #ddd; border-radius: 8px;
  background: #f8f8f8; cursor: pointer; font-size: .8rem;
  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: .85rem; }
.al-original { text-decoration: line-through; color: #999; font-size: .8rem; margin-right: 6px; }
.al-price { color: var(--red); font-weight: 700; font-size: .9rem; }
.al-free { color: var(--secondary); font-weight: 700; }

/* ── Quantity Controls ── */
.al-modal__qty { display: flex; align-items: center; gap: 8px; }
.al-modal__qty button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #ddd; background: #f8f8f8;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.al-modal__qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: .9rem; }

/* ── Right Panel ── */
.al-modal__right { padding: 16px 20px; }
.al-modal__section-label {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .8rem; 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: 10px; 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: 12px 0; border-top: 2px solid #eee; margin-top: 8px;
}
.al-modal__total-label { font-weight: 600; font-size: .95rem; }
.al-modal__total-amount { font-size: 1.3rem; font-weight: 800; }
.al-modal__total-saved { display: block; font-size: .75rem; color: var(--secondary); font-weight: 600; }

/* ── Pay Button ── */
.al-modal__pay-btn {
  width: 100%; padding: 12px; background: var(--primary);
  color: #fff; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  margin-top: 8px; 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: .72rem; color: #999;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .al-footer__top { grid-template-columns: 1fr; }
  .al-footer__links { grid-template-columns: repeat(3, 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 { font-size: 2.2rem; }
  .al-hero__title span:last-child { font-size: 1.3rem; }
  .al-hero { min-height: 70vh; }
  .al-hero__features { gap: 10px; }
  .al-hero__feature { font-size: .8rem; }
  .al-section { padding: 48px 0; }
  .al-section__title { font-size: 1.7rem; }
  .al-modal__body { grid-template-columns: 1fr; }
  .al-modal__left { border-right: none; border-bottom: 1px solid #eee; }
  .al-modal { max-height: 95vh; }
  .al-tickets { grid-template-columns: 1fr; }
  .al-experiences { grid-template-columns: 1fr; }
  .al-footer__links { grid-template-columns: 1fr; gap: 16px; }
  .al-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .al-promo { font-size: .75rem; flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  .al-hero__title { font-size: 1.8rem; }
  .al-hero__title span:last-child { font-size: 1.1rem; }
  .al-hero__subtitle { font-size: .95rem; }
  .al-btn--lg { padding: 14px 24px; font-size: .95rem; }
  .al-section__title { font-size: 1.5rem; }
  .al-cta-section__title { font-size: 1.6rem; }
  .al-modal__form-row { grid-template-columns: 1fr; }
}

/* ── Legal Pages ── */
.al-legal { padding: 120px 0 60px; }
.al-legal h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 24px; }
.al-legal h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 24px 0 12px; }
.al-legal p { margin-bottom: 12px; color: var(--gray-700); line-height: 1.7; }
.al-legal ul { margin: 12px 0 12px 24px; list-style: disc; }
.al-legal ul li { margin-bottom: 6px; color: var(--gray-700); line-height: 1.6; }
