/* public.css - basic public list placeholder */
.public-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 26px 0;
}

.public {
    padding: 18px 26px 60px;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.event-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 16px;
}

.badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(46, 168, 255, 0.35);
    color: var(--text);
}




.public-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
  color: #eaf2ff;
}

.public-hero{
  padding: 18px 16px;
  margin-bottom: 14px;
}

.card{
  background: rgba(16, 25, 53, 0.85);
  border: 1px solid rgba(46,168,255,.25);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.card-title{ margin:0 0 10px; }
.muted{ opacity:.85; }
.small{ font-size: 13px; }

.ticket-list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.ticket-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  background: rgba(10, 16, 40, 0.6);
  border: 1px solid rgba(46,168,255,.18);
  border-radius: 12px;
  padding: 12px;
}

.ticket-name{ font-weight: 800; }
.qty input{ width: 80px; }

.form label{ display:block; margin-top: 10px; font-weight: 700; }
.form input, .form textarea{
  width:100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(46,168,255,.25);
  background: rgba(10, 16, 40, 0.55);
  color: #eaf2ff;
  outline: none;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(46,168,255,.6);
}

.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46,168,255,.35);
  color: #eaf2ff;
  text-decoration:none;
  background: transparent;
  font-weight: 800;
  margin-top: 12px;
}
.btn.primary{
  background: #2ea8ff;
  color:#0e1426;
  border-color:#2ea8ff;
}
.btn.ghost{ opacity:.9; }

.sep{ border:0; border-top:1px solid rgba(46,168,255,.18); margin: 14px 0; }

.flash-area{ margin: 12px 0; display:flex; flex-direction:column; gap:8px; }
.flash{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.2);
}
.flash.error{ border-color: rgba(255,80,80,.45); }
.flash.success{ border-color: rgba(80,255,170,.35); }

.consent{ display:flex; gap:10px; align-items:flex-start; margin-top: 12px; }






/* Event hero / meta grid */
.event-hero {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}

.event-hero-inner { max-width: 980px; }

.event-title { margin: 0 0 10px 0; }

.event-meta-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 10px;
}

@media (max-width: 820px) {
  .event-meta-grid { grid-template-columns: 1fr; }
}

.meta-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.08);
}

.meta-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.meta-value {
  font-weight: 600;
}

/* Lock banner */
.lock-banner {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  margin: 14px 0;
}

.lock-title { font-weight: 800; margin-bottom: 4px; }
.lock-sub { opacity: 0.85; margin-bottom: 10px; }

/* Flip timer */
.flip-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 84px));
  gap: 10px;
  align-items: center;
  margin: 10px 0 6px;
}

.flip-unit {
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 10px 10px 8px;
  text-align: center;
}

.flip-num {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}

.flip-text {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 3px;
}

.flip-animate {
  animation: flipPop 160ms ease-in-out;
}

@keyframes flipPop {
  from { transform: translateY(-2px) scale(1.01); opacity: 0.85; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Disabled book button */
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}




.event-card {

  display: grid;

  grid-template-columns: 240px 1fr;

  gap: 16px;

  border-radius: 16px;

  overflow: hidden;

}

.event-card-media {

  width: 100%;

  height: 160px;

  overflow: hidden;

}

.event-card-media img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

}
 

/* --- Event card cover image (fix sizing) --- */

.event-cover {

  position: relative;

  width: 100%;

  height: 220px;              /* adjust if you want taller */

  overflow: hidden;

  border-radius: 16px;

}

.event-cover img,

.event-cover .event-cover-img {

  width: 100%;

  height: 100%;

  display: block;

  object-fit: contain;          /* crops instead of stretching */

  object-position: center;

}

.event-cover-overlay {

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05));

  pointer-events: none;

}

.event-cover-title {

  position: absolute;

  left: 16px;

  right: 16px;

  bottom: 14px;

  color: #fff;

}




/* ====== Events list modern layout ====== */

.event-list-modern{

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 18px;

  margin-top: 14px;

}

.event-card-modern{

  background: rgba(16, 25, 53, 0.70);

  border: 1px solid rgba(46,168,255,.22);

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 14px 34px rgba(0,0,0,.30);

  transform: translateY(0);

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;

}

.event-card-modern:hover{

  transform: translateY(-3px);

  box-shadow: 0 18px 44px rgba(0,0,0,.38);

  border-color: rgba(46,168,255,.35);

}

.event-body{

  padding: 14px 14px 16px;

}

.event-h2{

  margin: 0;

  font-weight: 900;

  letter-spacing: .2px;

}

/* Top mini cards */

.event-top-grid{

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 12px;

}

@media (max-width: 920px){

  .event-top-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

.mini-card{

  background: rgba(10, 16, 40, 0.55);

  border: 1px solid rgba(46,168,255,.18);

  border-radius: 14px;

  padding: 10px 12px;

}

.mini-label{

  font-size: 12px;

  opacity: .8;

  margin-bottom: 4px;

}

.mini-value{

  font-weight: 800;

}

.mini-price .price-big{

  font-size: 18px;

  font-weight: 900;

}

/* Sections grid */

.event-sections-grid{

  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;

  margin: 10px 0 12px;

}

.section-card{

  background: rgba(10, 16, 40, 0.45);

  border: 1px solid rgba(46,168,255,.16);

  border-radius: 16px;

  padding: 12px;

}

.section-head{

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 8px;

}

.section-head h3{

  margin: 0;

  font-size: 14px;

  font-weight: 900;

}

/* Chips (replace bullets) */

.chip-grid{

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}

.chip{

  padding: 8px 10px;

  border-radius: 999px;

  border: 1px solid rgba(46,168,255,.22);

  background: rgba(46,168,255,.08);

  font-weight: 800;

  font-size: 13px;

}

/* Location + map preview */

.loc-row{

  display: grid;

  grid-template-columns: 1fr;

  gap: 10px;

}

.loc-title{

  font-weight: 900;

  margin-bottom: 2px;

}

.map-preview{

  width: 100%;
  

  border: 1px solid rgba(46,168,255,.20);

  background: rgba(0,0,0,.14);

  border-radius: 16px;

  overflow: hidden;

  padding: 0;

  cursor: pointer;

  position: relative;


}
@media (max-width: 920px){

  .map-preview{
    width: 100%;
  }

}


.map-preview:disabled{

  cursor: not-allowed;

  opacity: .65;

}

.map-preview img{

  width: 100%;

  height: 220px;

  display: block;

  object-fit: contain;

}

.pass-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.pass-logo {
  max-width: 140px; 
  height: auto;
  width: 100%;
  object-fit: contain;
  display: block;
  opacity: .95;
}

.pass-terms {
  display: block;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.pass-terms:hover {
  text-decoration: underline;
}

.map-badge{

  position: absolute;

  bottom: 10px;

  right: 10px;

  background: rgba(0,0,0,.55);

  border: 1px solid rgba(255,255,255,.16);

  color: #fff;

  padding: 8px 10px;

  border-radius: 999px;

  font-weight: 900;

  font-size: 12px;

}

.map-empty{

  padding: 14px;

  text-align: left;

}

.map-empty-title{

  font-weight: 900;

  margin-bottom: 4px;

}

/* Actions */

.event-actions-row.single-action{

  display: flex;

  justify-content: flex-end;

  margin-top: 8px;

}

.countdown-strip{

  margin-top: 10px;

  padding: 10px 12px;

  border-radius: 14px;

  border: 1px dashed rgba(46,168,255,.22);

  background: rgba(10, 16, 40, 0.35);

}

/* Animated dots */

.dots{

  display: inline-block;

  min-width: 14px;

}

/* Disabled tickets button */

.get-tickets-btn.is-disabled{

  pointer-events: none;

  opacity: .45;

  filter: grayscale(.2);

}

/* ====== Modal ====== */

.modal{

  position: fixed;

  inset: 0;

  display: none;

  z-index: 9999;

}

.modal.is-open{ display: block; }

.modal-backdrop{

  position: absolute;

  inset: 0;

  background: rgba(0,0,0,.55);

}

.modal-card{

  position: relative;

  max-width: 520px;

  margin: 10vh auto;

  background: rgba(16, 25, 53, 0.95);

  border: 1px solid rgba(46,168,255,.25);

  border-radius: 18px;

  box-shadow: 0 22px 60px rgba(0,0,0,.55);

  padding: 14px;

}

.modal-head{

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;

  margin-bottom: 12px;

}

.modal-title{

  font-weight: 900;

  font-size: 16px;

}

.icon-btn{

  width: 40px;

  height: 40px;

  border-radius: 12px;

  border: 1px solid rgba(46,168,255,.20);

  background: rgba(0,0,0,.16);

  color: #eaf2ff;

  cursor: pointer;

}

.modal-actions{

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

}


.reserve-box{

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:14px;

  padding:14px 16px;

  border-radius:16px;

  background: rgba(0,0,0,0.22);

  border: 1px solid rgba(46,168,255,.22);

  margin: 12px 0 14px;

}

.reserve-title{ font-weight:900; }

.reserve-timer{

  display:flex;

  align-items:center;

  gap:10px;

  padding:10px 12px;

  border-radius:14px;

  background: rgba(10,16,40,.55);

  border: 1px solid rgba(255,255,255,.10);

  min-width: 160px;

  justify-content:center;

}

.rt-unit{ text-align:center; }

.rt-num{ font-size:22px; font-weight:900; line-height:1; }

.rt-label{ font-size:11px; opacity:.8; margin-top:3px; }

.rt-sep{ font-weight:900; opacity:.85; transform: translateY(-6px); }

.reserve-box.expired{

  border-color: rgba(255,80,80,.45);

}



.breakdown{ margin-top: 12px; }

.breakdown-toggle{

  width:100%;

  display:flex;

  justify-content:space-between;

  align-items:center;

  padding:12px 14px;

  border-radius:14px;

  background: rgba(0,0,0,0.18);

  border: 1px solid rgba(255,255,255,0.10);

  color:#eaf2ff;

  font-weight:900;

  cursor:pointer;

}

.breakdown-panel{

  margin-top:10px;

  padding:12px 14px;

  border-radius:14px;

  background: rgba(10,16,40,.55);

  border: 1px solid rgba(255,255,255,0.10);

}

.bd-row{

  display:flex;

  justify-content:space-between;

  padding:8px 0;

  border-bottom: 1px solid rgba(255,255,255,0.06);

}

.bd-row:last-child{ border-bottom:0; }

.bd-total{ font-weight:900; padding-top:10px; }
 


/* HERO cover like a background image */

.event-cover{

  position: relative;

  width: 100%;

  height: 320px;            /* make it bigger (try 300–380px) */

  overflow: hidden;

  border-radius: 16px;

  background: rgba(0,0,0,.18);

}

/* Fill the whole panel */

.event-cover-img{

  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;         /* THIS makes it behave like background-size: cover */

  object-position: center;   /* move this if it crops wrong */

  transform: scale(1.02);    /* tiny scale to avoid edge gaps */

}

/* Dark gradient so text is readable */

.event-cover-overlay{

  position: absolute;

  inset: 0;

  background: linear-gradient(
    
    to top,

    rgba(0,0,0,.70) 0%,

    rgba(0,0,0,.25) 55%,

    rgba(0,0,0,.10) 100%

  );

  pointer-events: none;

}

/* Text on top */

.event-cover-title{

  position: absolute;

  left: 16px;

  right: 16px;

  bottom: 14px;

  z-index: 2;

  color: #fff;

}

/* Make it responsive */

@media (max-width: 720px){

  .event-cover{ height: 240px; }

}
 