/* Venue-specific overrides */

/* Remove white background container on Venue pages */
body.single-venue .site-content,
body.single-venue .content-area,
body.single-venue .ast-container{
  background: transparent !important;
}

/* Make content full width */
body.single-venue .ast-container{
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hide Astra default title/meta on Venue pages */
body.single-venue header.entry-header{
  display: none !important;
}

/* Main wrapper */
.hg-venue{
  width: 100vw;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: none !important;
  padding: 0 !important;
}

.hg-venue-layout{
  display: block;
  position: relative;
}

.hg-venue-sticky-nav{
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  width: auto;
  display: flex;
  align-items: center;
  margin: 0;
  z-index: 9999;
  pointer-events: auto;
}

.hg-venue-sticky-card{
  position: relative;
  z-index: 51;
  background: #f2f5f7;
  border: 1px solid rgba(1, 112, 185, 0.18);
  border-radius: 18px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 88px;
  max-width: 88px;
  box-shadow: 0 10px 26px rgba(16, 32, 54, 0.12);
  pointer-events: auto;
}

.hg-venue-sticky-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 8px 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(1, 112, 185, 0.12);
}

/* Keep existing sticky items non-interactive, except Opening hours */
.hg-venue-sticky-item:not(.hg-venue-sticky-item--hours){
  pointer-events: none;
}

.hg-venue-sticky-item--hours{
  position: relative;
  pointer-events: auto;
}

.hg-venue-sticky-item--hours:hover{
  background: #ffffff;
  border-color: rgba(1, 112, 185, 0.12);
}

.hg-venue-sticky-item--hours:focus-within{
  background: #ffffff;
  border-color: rgba(1, 112, 185, 0.12);
}

.hg-venue-sticky-hours-btn{
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  cursor: pointer;
  background: transparent;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.hg-venue-sticky-hours-btn:hover,
.hg-venue-sticky-hours-btn:active,
.hg-venue-sticky-hours-btn:focus,
.hg-venue-sticky-hours-btn:focus-visible{
  background: transparent;
  outline: none;
  box-shadow: none;
}

.hg-venue-sticky-hours-popover{
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  max-width: min(320px, calc(100vw - 40px));
  background: #ffffff;
  border: 1px solid rgba(1, 112, 185, 0.18);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(16, 32, 54, 0.16);
  z-index: 60;
}

.hg-venue-sticky-hours-popover__inner{
  padding: 12px 14px;
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.35;
  position: relative;
}

.hg-venue-sticky-hours-close{
  all: unset;
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  color: #3a3a3a;
  font-size: 18px;
  font-weight: 700;
}

.hg-venue-sticky-hours-popover__inner p{
  margin: 0 0 8px;
}

.hg-venue-sticky-hours-popover__inner p:last-child{
  margin-bottom: 0;
}

.hg-venue-sticky-item__icon{
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.hg-venue-sticky-item__label{
  color: #3a3a3a;
  font-weight: 600;
  font-size: 12px;
  text-transform: capitalize;
  line-height: 1.1;
  margin-top: 0;
}

.hg-venue-content{
  width: 100%;
}

/* HERO */
.hg-venue-hero{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  height: 420px;
  background-size: cover;
  background-position: center;
  margin-bottom: 18px;
}


.hg-venue-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  z-index: 1;
}

.hg-venue-hero__title{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #fff;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  width: calc(100% - 56px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 3;
}

/* Middle info row */
.hg-venue-mid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(960px, calc(100vw - 80px));
  margin: 12px auto 18px;
  align-items: center;
}

.hg-venue-mid__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.hg-venue-mid__item:visited,
.hg-venue-mid__item:hover,
.hg-venue-mid__item:focus,
.hg-venue-mid__item:active{
  text-decoration: none;
}

.hg-venue-mid__link,
.hg-venue-mid__link:visited,
.hg-venue-mid__link:hover,
.hg-venue-mid__link:focus,
.hg-venue-mid__link:active{
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  justify-content: center;
}

.hg-venue-mid__icon{
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.hg-venue-mid__label{
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1b;
}

.hg-venue-mid__item:hover{
  opacity: 0.85;
}

/* Description */
.hg-venue-desc{
  max-width: 820px;
  font-size: 19px;
  line-height: 1.8;
  opacity: .92;
  margin: 0 auto 22px;
  width: min(960px, calc(100vw - 80px));
}

.hg-venue-desc-extended{
  max-width: 980px;
  font-size: 17px;
  line-height: 1.6;
  color: #1b1b1b;
  margin: 0 auto 26px;
  width: min(960px, calc(100vw - 80px));
}

.hg-venue-desc-extended p{
  margin: 0;
}

/* 3 images grid */
.hg-venue-gallery-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 433px));
  gap: 22px;
  margin: 0 auto 22px;
  width: 100%;
  max-width: 1343px;
  justify-content: center;
}

.hg-venue-gallery-3 figure{
  width: 433px;
  max-width: 100%;
  aspect-ratio: 433 / 317;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

.hg-venue-gallery-3 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Venue Experiences Grid */
.hg-venue-experiences{
  width: min(1200px, calc(100vw - 80px));
  margin: 50px auto 30px;
  padding: 22px 24px 26px;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(16, 32, 54, 0.12);
  position: relative;
  overflow: hidden;
  background-color: #e6eaeb;
}

.hg-venue-experiences__title{
  width: 100%;
  margin: 12px 0 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #0b1b2b;
  letter-spacing: 0.6px;
  text-shadow: none;
  position: relative;
  z-index: 1;
}

.hg-venue-experiences-grid{
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 8px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

@media (min-width: 1800px){
  .hg-venue-experiences-grid{
    grid-auto-columns: calc((100% - 64px) / 5);
  }
}

@media (min-width: 1200px) and (max-width: 1799px){
  .hg-venue-experiences-grid{
    grid-auto-columns: calc((100% - 48px) / 4);
  }
}

@media (min-width: 768px) and (max-width: 1199px){
  .hg-venue-experiences-grid{
    grid-auto-columns: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767px){
  .hg-venue-experiences-grid{
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
  }
}

@media (max-width: 520px){
  .hg-venue-experiences-grid{
    grid-auto-columns: 85%;
  }
}

.hg-venue-experience-card{
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 54, 0.08);
  box-shadow: 0 14px 30px rgba(16, 32, 54, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.hg-venue-experience-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(16, 32, 54, 0.14);
}

.hg-venue-experience-card__media{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef2f6;
  overflow: hidden;
}

.hg-venue-experience-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hg-venue-experience-card__media-placeholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e7edf4 0%, #f6f8fb 100%);
}

.hg-venue-experience-card__body{
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
}

.hg-venue-experience-card__title{
  font-size: 16px;
  font-weight: 700;
  color: #102036;
  margin: 0;
}

.hg-venue-experience-card__title--center{
  text-align: center;
}

.hg-venue-experience-card__meta{
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #5b677a;
  font-weight: 600;
  margin-top: 4px;
}

.hg-venue-experience-card__meta-item{
  display: block;
}

.hg-venue-experience-card__cta{
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0170B9;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 6px;
}

.hg-venue-experience-card__cta--center{
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.hg-venue-experience-card__cta:hover{
  background: #015e9a;
  color: #ffffff;
}

/* Tickets Container (Venue) */
.hg-tickets-container{
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 30px auto;
  width: min(860px, calc(100vw - 96px));
  background: #fff;
  border-radius: 22px;
  padding: 16px 20px 22px;
  box-shadow: 0 12px 30px rgba(5, 10, 20, 0.08);
}

body.single-venue .hg-tickets,
body.single-venue .hg-ticket,
body.single-venue .hg-ticket-card,
body.single-venue .hg-ticket-desc-row,
body.single-venue .experience-tickets,
body.single-venue .experience-tickets .tickets-list{
  max-width: min(860px, calc(100vw - 96px));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.single-venue .experience-tickets .tickets-list{
  justify-content: center;
}

.hg-ticket-card{
  display: grid;
  grid-template-columns: 54px 1fr 140px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  transition: none;
}

.hg-ticket-card:hover{
  background: none !important;
}

.hg-ticket-toggle{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hg-ticket-arrow{
  background: #0b1b2b;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hg-ticket-arrow:hover{ opacity: 0.9; }
.hg-ticket-arrow:active{ opacity: 1; }
.hg-ticket-arrow:focus{ outline: none; opacity: 1; }

.hg-ticket-card.is-open .hg-ticket-arrow{
  transform: rotate(90deg);
}

.hg-ticket-info{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hg-ticket-name{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.hg-ticket-price{
  margin: 0;
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.hg-ticket-qty{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.qty-btn{
  background: #0b1b2b;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover{ background: #ff9500; }
.qty-btn:active{ background: #0b1b2b; }
.qty-btn:focus{ outline: none; background: #0b1b2b; }

.qty-input{
  width: 44px;
  text-align: center;
  border: 1px solid rgba(11, 27, 43, 0.35);
  background: rgba(11, 27, 43, 0.08);
  color: #0b1b2b;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: 8px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.qty-input:focus{
  outline: none;
  border-color: #0b1b2b;
  box-shadow: 0 0 0 2px rgba(11, 27, 43, 0.25);
}

.hg-ticket-desc-row{
  display: none;
  grid-column: 1 / -1;
  padding: 14px 24px 18px 78px;
  border-bottom: 1px solid rgba(11, 27, 43, 0.12);
  background: rgba(11, 27, 43, 0.05);
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(8px);
}

.hg-ticket-card.is-open + .hg-ticket-desc-row{
  display: block;
}

.hg-ticket-description{
  font-size: 12px;
  color: #23374f;
  line-height: 1.7;
  margin: 0;
}

.hg-tickets-total{
  display: grid;
  grid-template-columns: 54px 1fr 140px;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(11, 27, 43, 0.06);
  border: 1px solid rgba(11, 27, 43, 0.2);
  border-radius: 26px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  color: #102036;
  box-shadow: 0 15px 35px rgba(5, 10, 20, 0.12);
  backdrop-filter: blur(10px);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  align-self: stretch;
}

.hg-total-price{
  color: #0b1b2b;
  font-size: 14px;
  font-weight: 700;
  justify-self: end;
}

.hg-tickets-add-all{
  background: #0b1b2b;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  transition: background 0.2s ease;
}

.hg-tickets-add-all,
.hg-cart-redirect{
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: block;
  align-self: stretch;
}

.hg-tickets-add-all:hover{ background: #27ae60; }
.hg-tickets-add-all:active{ background: #0b1b2b; }
.hg-tickets-add-all:focus{ outline: none; background: #0b1b2b; }

.hg-tickets-add-all:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.hg-ticket__add.btn{
  display: inline-block;
  background: #0b1b2b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.hg-ticket__add.btn:hover{ opacity: 0.9; }

.hg-cart-redirect{
  text-align: center;
  margin-top: 25px;
}

.hg-cart-redirect .hg-exp-buy{
  background: #0b1b2b;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.hg-ticket__add.btn.added{
  background: #198754;
  color: #fff;
}

.hg-ticket__add.btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

.hg-venue-tickets-empty{
  text-align: center;
  font-size: 14px;
  color: #5b677a;
  margin: 20px auto 30px;
}

/* Responsive */
@media (max-width: 1024px){
  .hg-venue-hero__title{ font-size: 44px; }
  .hg-venue-gallery-3{ grid-template-columns: repeat(2, minmax(0, 433px)); }
  .hg-venue-layout{ display: block; }
  .hg-venue-sticky-nav{ display: none; }
}

@media (max-width: 768px){
  .hg-venue-hero{ min-height: 260px; height: 260px; border-radius: 18px; }
  .hg-venue-hero__title{ font-size: 34px; width: calc(100% - 36px); }
  .hg-venue-gallery-3{ grid-template-columns: minmax(0, 433px); }
  .hg-venue-mid{ grid-template-columns: 1fr; gap: 16px; }
}
