:root{
   --preview-hero-height: 270px;   
}

.card{
   background: white;
   border-radius: 8px;
   padding: 12px;
   position: relative;
   cursor: pointer;
}

.card.card-static{
   cursor: unset;
}

.slide .card{
   display: block;
}

a.card{
   color: black;
   text-decoration: none;
}

.card-inner{
   position: relative;
   height:100%;
   width: 100%;
}

.card.card-alt{
   background: #F8F8F8;
}

.card:not(.card-static).card-alt:hover{
   background: #F1F1F1;
}

a.card:not(.card-static).card-alt:hover, .card[class^="go-to"]:not(.card-static):hover{
   scale: 0.99;
}

.card.card-alt button, .card.card-alt .is-button{
   color: white;
   background: black;
   border-radius: var(--border-radius-lg);
}

.card[data-cdtheme='event'].card-alt button,
.card[data-cdtheme='event'].card-alt .is-button{
   color: white;
   background: #0067CE;
   border-radius: var(--border-radius-lg);
}


.card[data-cdtheme='header']{
   align-items: unset;
   height: 150px;
}



.card[data-cdtheme='preview']{
   align-items: unset;
   height: 180px;
}


.card[data-cdtheme='event']{
   align-items: unset;
   height: 120px;
}

.card[data-cdtheme='information']{
   align-items: unset;
   height: 120px;
}





/*
   This card has the layout of hero image,
   header, preview content, footer. It assumes that you are showing a little
   content and will have a cta for the user to see more.
   The card has a fixed height and clamps the preview content.   
*/
.card[data-cdtheme='preview+hero']{
   align-items: unset;
   height: var(--preview-hero-height);
}

.card[data-cdtheme='event'] .card-inner  > *:not(figure)
.card[data-cdtheme='preview+hero'] .card-inner  > *:not(figure){
   padding: 0 4px; /*small indentation for better readability*/
}

.card[data-cdtheme='preview+hero'] figure{
   border-radius: 8px;
   overflow:hidden;
   width: 100%;
   height: auto;
   margin-bottom: 0.75rem;
}

.card[data-cdtheme='preview+hero'] figure img {
   width: 100%;
   height: 100%;
   aspect-ratio: 13/7;
   transition: transform 0.5s ease;
   object-fit: cover; /* Ensure the image covers the area without distortion */
   border-radius: 8px;
   min-height: 72px;
   max-height: 108px;
   filter: brightness(0.8);
}

.slider[data-slides='1'] .card[data-cdtheme='preview+hero'] figure img{
   height: 40vw;
   min-height: 90px;
   max-height: 128px;
}

.card[data-cdtheme='event'] header,
.card[data-cdtheme='preview+hero'] header  :is(h1, h2, h3, h4, h5, h6),
.card[data-cdtheme='preview'] header  :is(h1, h2, h3, h4, h5, h6){
   margin-bottom: 0;
   font-size: clamp(1.32rem, 1.32rem + 0.05vw, 1.48rem);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   font-weight: 500;   
}

.card[data-cdtheme='preview+hero'] header[data-long='true']  :is(h1, h2, h3, h4, h5, h6){
   font-size: clamp(1.16rem, 1.20rem + 0.05vw, 1.32rem);
}

.card[data-cdtheme='preview+hero'] header,
.card[data-cdtheme='event'] header{
   margin-bottom: 0.5rem;
}

.card[data-cdtheme='event'] header{
   margin-bottom: 0.25rem;
}

.card[data-cdtheme='event'] time{
   margin-bottom: 0.4em;
   display: block;
   font-size: 1.04rem;
}





.card[data-cdtheme='event'] p,
.card[data-cdtheme='preview+hero'] p,
.card[data-cdtheme='preview'] p{
   font-size: small;
   margin-bottom: 0;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   white-space: unset;
   line-height: 1.2; 
   overflow: hidden;
   text-overflow: ellipsis;  
}
.card[data-cdtheme='event'] p{
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.card[data-cdtheme='event'] footer,
.card[data-cdtheme='preview+hero'] footer,
.card[data-cdtheme='preview'] footer,
.card[data-cdtheme='header'] footer{
   position: absolute;
 bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card[data-cdtheme='preview+hero'] footer .aside,
.card[data-cdtheme='event'] footer .aside{
  flex-grow: 1;
  align-self: flex-start;
}
.card[data-cdtheme='event'] footer .aside{
   line-height: 36px;
}

.card[data-cdtheme='preview+hero'] footer button, 
.card[data-cdtheme='preview+hero'] footer .is-button, 
.card[data-cdtheme='preview'] footer button, 
.card[data-cdtheme='preview'] footer .is-button, 
.card[data-cdtheme='header'] footer button, 
.card[data-cdtheme='header'] footer .is-button, 
.card[data-cdtheme='event'] footer button, 
.card[data-cdtheme='event'] footer .is-button {
   margin-left: auto;
   font-size: clamp(12px, 1.6vw, 15px);
   height: clamp(32px, 3vw, 36px);
   line-height: clamp(32px, 3vw, 36px);
}


.card img{
   border-radius: 8px;
}


/*
   This card is just a hero image with some content
   on top.
*/
.card[data-cdtheme='hero']{
   color: white;
}

.card[data-cdtheme='hero'] figure{
}

.card[data-cdtheme='hero'] .mask{
}






.card[data-cdtheme='event'] .aside.tag{
   border-radius: 4px;
   font-size: smaller;
   line-height: unset;
   flex-grow: unset;
   display: flex;
   position: absolute;
   left: 0;
   bottom: 0;
   padding: 4px;
   line-height: 16px;
}

.card[data-cdtheme='event'] .aside.tag.tag-starred{
   color: #0067ce;
   background: #0067ce0a;
}

.card[data-cdtheme='event'] .aside.tag.tag-trending{
   color: #38755b; /* Darker green text color */
   background: #b1e7b138;
}


.card[data-cdtheme='event'] .aside.tag.tag-starred::before {
   content: url('https://icongr.am/material/check.svg?color=0067ce&size=16');
   margin-right: 0.3em;
}

.card[data-cdtheme='event'] .aside.tag.tag-trending::before {
   content: url('https://icongr.am/material/chart-line-variant.svg?color=38755b&size=16');
   margin-right: 0.3em;
}


/* No ellipsis */
.card[data-cdtheme='event']:not(:has(p)) header{
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   white-space: unset;
   overflow: hidden;
   text-overflow: ellipsis; 
}

@media (max-width: 599px){
   .card[data-cdtheme='event'] header{
      font-size: 1.20rem;
   }

   .card[data-cdtheme='event'] {
      height: 108px;
  }
  .card[data-cdtheme='event'] .aside.tag {
     padding: 2px 4px;
  }  
  .card[data-cdtheme='event'] p{
   font-size: 1.04rem;   
   } 
}





/* 
This style has an image at the top, a header and a CTA
*/
.card[data-cdtheme='showcase']{
   padding: 0;
}


.card[data-cdtheme='showcase'] figure{
   position: relative;
   border-radius: 8px;
   overflow: hidden;
   width: 100%;
   height: auto;
   margin-bottom: 0.4em;
   line-height: 1;    
}
.card[data-cdtheme='showcase'] figure .is-mask{
   position: absolute;
   z-index: 4;
   background: rgb(0 0 0 / 70%);
   color: white;
   text-align: center;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 500;
   font-size: clamp(0.5rem, 2vw, 1.3rem);
   padding: 8px;
}
.card[data-cdtheme='showcase'] figure img{
   width: 100%;
   height: 100%;
   aspect-ratio: 13/7;
   transition: transform 0.5s ease;
   object-fit: cover; /* Ensure the image covers the area without distortion */
   border-radius: 8px;
   min-height: 72px;
   filter: brightness(0.8);   
}


.card[data-cdtheme='showcase'] figure img:hover{
   transform: scale(1.1);
}

.card[data-cdtheme='showcase'] header{
   font-weight: bold;
   font-size: clamp(0.8rem, 2vw, 1.3em);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   line-height: 1;
}

.card[data-cdtheme='showcase'] header + footer {
   margin-top: 0.2em; /* Ensures spacing after header */
}

.card[data-cdtheme='showcase'] footer{
   font-size: small;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;   
}



.card[data-cdtheme='information'] [slot="header"]{
   font-weight: bold;
   font-size: 18px;
   margin-bottom: 12px;
   display: block;
}

.card[data-cdtheme='information'] [slot="header"].has-icon{
   padding-left: 28px;
}
.card[data-cdtheme='information'] [slot="header"].has-icon::before{
   height: 20px;
   width: 20px;
   opacity: 0.8; /*reduce intensity*/
}

.card[data-cdtheme='information'] p{

   margin-bottom: 0;
}









/* Zone */
.card[data-model='zone'] {

}

.card[data-model='zone'] header {
   font-weight: bold;
   font-size: 18px;
   margin-bottom: 16px;
}



.card.is-preview:hover {
   transform: scale(.99);
}


.card.is-preview,
.card.is-preview-open {
   transition: transform 0.3s ease, opacity 0.3s ease;
}

.card.is-preview {
   transform: scale(1); /* Default state */
   opacity: 1;
}



.card[data-model='zone'], .card[data-model='review'], .card[data-model='seatRating'], .card[data-model='question']{
   max-width: 768px;
}





.card[data-model='zone'].is-preview [data-kind='content']{
   margin-bottom: 0;
   display: -webkit-box;
   -webkit-line-clamp: 3; /*hack to work with inline-block; will dbl to 6*/
   -webkit-box-orient: vertical;
   white-space: unset;
   overflow: hidden;
   text-overflow: ellipsis;   
}

.card[data-model='zone'].is-preview [data-kind='content'] p, .card[data-model='zone'].is-preview [data-kind='content'] ul{
   display: inline-block;
}

.card[data-model='review'].is-preview [data-kind='review']{
   margin-bottom: 0;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   white-space: unset;
   overflow: hidden;
   text-overflow: ellipsis;
   
}


.card[data-model='zone'].is-preview, .card[data-model='review'].is-preview, .card[data-model='seatRating'].is-preview, .card[data-model='question'].is-preview {
   position: relative;
   padding-bottom: 48px;
}


.card[data-model='zone'].is-preview:after, .card[data-model='review'].is-preview:after, .card[data-model='seatRating'].is-preview:after, .card[data-model='question'].is-preview:after{
   position: absolute;
   content: "Read More";
   bottom: 16px;
   right: 16px;
   font-size: 14px;
   font-weight: 500;
}

.card[data-model='zone'].is-preview-open:after, .card[data-model='review'].is-preview-open:after, .card[data-model='seatRating'].is-preview-open:after, .card[data-model='question'].is-preview-open:after{
   position: absolute;
   content: "Read less";
   bottom: 16px;
   right: 16px;
   font-size: 14px;
   font-weight: 500;
}



/* Review */
.card[data-model='review'] {

}

.card[data-model='review'] header {

}

.card[data-model='review'] [data-kind='content']{

}

.card[data-model='review'].is-preview [data-kind='content']{
   margin-bottom: 0;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   white-space: unset;
   overflow: hidden;
   text-overflow: ellipsis;
}

.card[data-model='review'] [data-kind='date'] {

}

/* SeatRating */
.card[data-model='seatRating'] {

}

.card[data-model='seatRating'] header {
   margin-bottom: 8px;
}

.card[data-model='seatRating'] header [data-kind='stars'] {
   font-size: 18px;
   margin-bottom: 8px;   
}

.card[data-model='seatRating'] header [data-kind='caption'], .card[data-model='review'] header [data-kind='caption'], .card[data-model='question'] header [data-kind='question']{
   font-size: 16px;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   line-height: 1.2;
   overflow: hidden;
   text-overflow: ellipsis;
   position: relative;
   font-weight: 500;
}

.card[data-model='seatRating'] [data-kind='seats']{
   font-size: 13px;
}

.card[data-model='seatRating'] [data-kind='metadesc']{

}


.card[data-model='seatRating'].is-preview [data-kind='review']{
   display: none;
}


.card[data-model='seatRating'].is-preview-open [data-kind='review']{
   margin-top: 16px;
}



.card[data-model='seatRating'].is-preview [data-kind='date'] {
   display: none;
}

/* Question */
.card[data-model='question'] {

}

.card[data-model='question'] header {

}

.card[data-model='question'] [data-kind='answer'] {

}



.card[data-model='question'] [data-kind='date'] {

}


.card[data-model='question'].is-preview [data-kind='answer'], .card[data-model='question'].is-preview [data-kind='date']{
   display: none;
}


.card[data-cdtheme='ticket-plain']{
   border: 1px solid #CCC;
   border-radius: 8px;
   height: 216px;
}


.card[data-cdtheme='ticket-plain'] .price{
   font-size: 28px;
   color: #0067CE;
   line-height: 56px;
}

.card[data-cdtheme='ticket-plain'] li{
text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
}


.card[data-cdtheme='ticket-plain'] [data-kind='attributes'] li{
   font-size: 14px;
}

.card[data-cdtheme='ticket-plain'] [data-kind='features'] li{
   font-weight: bold;
   font-size: 15px;
}



