@charset "utf-8";

/* ==========================================
   File: TixBroadway.css
   Purpose: TixBroadway general site CSS
   Modeled after Tixpick general CSS

   Includes:
   - Theme variables
   - Global reset / base typography
   - Section and container layout
   - Flex-grid / ticket-box system
   - Responsive columns
   - Image/button utilities
   - TicketNetwork widget overrides
   - General links
   - Theater directory white-background override

   Note:
   - Carousel-specific CSS has been removed.
   - Carousel CSS belongs in /css/TixBroadway-Carousel.css.
========================================== */


/*------------------------------------
  Theme Colors
------------------------------------*/
:root {
  --bg-light: #f4f6f6;
  --bg-black: #000000;
  --bg-dark: #241c34;
  --bg-orange: #FF9900;
  --bg-charcoal: #e1e1e1;
  --highlight: #F39C12;
  --gray: #CCCCCC;
  --gray-accent: #CCCCCC;
  --text-dark: #000000;
  --text-gray: #333333;
  --blue-accent: #0099FF;
  --white-bright: #ffffff;
  --gold-accent: #fda83c;
}


/*------------------------------------
  Global Reset & Base
------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: system-ui, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-light);
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
object,
embed,
video {
  max-width: 100%;
  height: auto;
}

hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--gray);
}


/*------------------------------------
  Typography
------------------------------------*/
h1 { font-size: 1.65em; font-weight: 700; }
h2 { font-size: 1.5em; font-weight: 600; }
h3 { font-size: 1.17em; font-weight: 500; }
h4 { font-size: 1em; font-weight: 400; }
h5 { font-size: 0.83em; font-weight: 300; }
h6 { font-size: 0.67em; font-weight: 300; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em 0;
  color: var(--text-dark);
}

.text-small { font-size: 12px; color: var(--text-dark); }
.text-medium-bold { font-size: 16px; font-weight: bold; color: var(--text-dark); }
.text-blue-12-bold { font-size: 12px; color: var(--blue-accent); }
.text-blue-medium-bold { font-size: 14px; color: var(--blue-accent); }
.text-white-extra-small { font-size: 9px; color: var(--white-bright); }
.text-white-small-bold { font-size: 12px; font-weight: bold; color: var(--white-bright); }
.text-white-bold { font-size: 16px; font-weight: bold; color: var(--white-bright); }
.text-blue-bold { font-size: 16px; font-weight: bold; color: var(--blue-accent); }
.text-gold-bold { font-size: 16px; font-weight: bold; color: var(--gold-accent); }
.text-light { font-size: 12px; font-weight: 100; color: var(--text-gray); }
.text-large-bold { font-size: 24px; font-weight: bold; color: var(--text-gray); }
.text-light-gray { font-size: 12px; font-weight: bold; color: #999999; }
.text-center { text-align: center; }


/*------------------------------------
  Sections / Containers
------------------------------------*/
.section,
.section-light {
  display: flex;
  width: 100%;
  padding: 20px;
  background: var(--bg-light);
}

.section-black {
  display: flex;
  width: 100%;
  background: var(--bg-black);
}

.section-dark {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-dark);
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: visible;
}

.section-highlight {
  display: flex;
  width: 100%;
  background: var(--highlight);
}

.section-gray {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--gray);
  align-items: center;
  justify-content: center;
}

.section-charcoal {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-charcoal);
}

.container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.gridContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  gap: 1rem;
}


/*------------------------------------
  Flex Grid System
------------------------------------*/
.flex-grid {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  gap: 1rem;
}

.flex-row.fullscreen {
  justify-content: flex-start;
  gap: 0;
}

.flex-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.75rem;
  background: var(--gray-accent);
  border: 1px solid #ddd;
  box-shadow: 0 8px 5px #999;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  align-self: stretch;
}

.ticket-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 80%;
  padding: 0.5rem;
  margin: 0;
  background: var(--gray-accent);
  border: 1px solid #ddd;
  box-shadow: 0 8px 5px #999;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  overflow-wrap: break-word;
  justify-content: center;
}

.box {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
  background-color: #ffffff;
  border: 0;
  box-shadow: 0 8px 5px #999;
  box-sizing: border-box;
  overflow: visible;
  height: auto;
}


/*------------------------------------
  Column Utilities
------------------------------------*/
.col-1-1  { flex: 0 0 100%; max-width: 100%; }
.col-1-2  { flex: 0 0 48%; max-width: 48%; }
.col-1-3  { flex: 0 0 32%; max-width: 32%; }
.col-1-4  { flex: 0 0 24%; max-width: 24%; }
.col-1-5  { flex: 0 0 18.45%; max-width: 18.45%; }
.col-1-6  { flex: 0 0 16.66%; max-width: 16.66%; }
.col-1-7  { flex: 0 0 14%; max-width: 14%; }
.col-1-8  { flex: 0 0 12.5%; max-width: 12.5%; }
.col-1-9  { flex: 0 0 11.11%; max-width: 11.11%; }
.col-1-10 { flex: 0 0 10%; max-width: 10%; }


/*------------------------------------
  Utilities
------------------------------------*/
.center-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
}

.center-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.left-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.justify-left { text-align: left; }
.justify-right { text-align: right; }
.justify-center { text-align: center; }

.full-width { width: 100%; }

.full-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.border { border: 4px groove var(--gray); }
.shadow-md { box-shadow: 0 8px 5px #999; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/*------------------------------------
  Image / Button Helpers
------------------------------------*/
.shadow-img,
.buy-button,
.box-shadow-img,
img.show-image,
img.buy-button-img,
img.shadow-img {
  box-shadow: 0 6px 4px #000;
  border: 0;
  width: 100%;
  margin-top: 8px;
}

.button-image,
.buy-button-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 6px 4px #000;
}

.responsive-img {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 6px 4px #000;
}


/*------------------------------------
  TicketNetwork Widget Overrides
------------------------------------*/
.tner-container,
.tner-list-container {
  display: block !important;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
  background: #fff !important;
  border: 1px solid #ccc !important;
  padding: 1rem !important;
  box-sizing: border-box;
  margin: 0 auto;
  min-height: 200px !important;
}

.tner-btn:hover,
.tner-row:hover .tner-btn {
  background-color: #13c548 !important;
}

.tner-container .tner-block {
  border-radius: 2px !important;
}

.tner-day-full,
.tner-month-num,
.tner-month-full {
  display: none;
}

.tner-year-full {
  display: block;
}

.tns3-search-container {
  width: 100%;
  max-width: 100%;
  min-height: 30px;
  display: block;
}


/*------------------------------------
  Responsive Layout
------------------------------------*/
@media (max-width: 1290px) {
  .gridContainer {
    padding: 0.25rem;
  }

  .col-1-7 {
    flex: 0 0 14%;
    max-width: 14%;
    padding: 0.25rem;
    margin: 0;
  }
}

@media (max-width: 992px) {
  .col-1-5 {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .col-1-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .col-1-4,
  .col-1-5,
  .col-1-7,
  [class^="col-1-"],
  [class*=" col-1-"] {
    flex: 0 0 48%;
    max-width: 48%;
  }

  .flex-item {
    width: 100%;
  }

  .ticket-box {
    padding: 0.5rem;
  }
}

@media (max-width: 767px) {
  .flex-item,
  .ticket-box {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 736px) and (orientation: landscape) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .gridContainer,
  .section,
  .section-light,
  .section-dark,
  .full-screen,
  .full-width {
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  .container {
    max-width: 100% !important;
    padding-left: 8px;
    padding-right: 8px;
  }

  .flex-item {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  [class^="col-1-"],
  [class*=" col-1-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ticket-box,
  .box {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/*------------------------------------
  Links
------------------------------------*/
a,
a:link,
a:visited {
  color: var(--blue-accent, #0099ff);
}

a:hover,
a:focus {
  color: var(--gold-accent, #fda83c);
}


/* =========================================
   FORCE WHITE THEATER DIRECTORY
========================================= */
#broadway-theater-directory,
#broadway-theater-directory .flex-grid,
#broadway-theater-directory .flex-row,
#broadway-theater-directory .flex-item {
  background: #ffffff !important;
}