/* ==================================================
   GLOBAL WRAPPER
================================================== */

.ec-wrapper {
  max-width:1000px;
  margin:20px auto;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  overflow:visible;   /* ADD THIS */
}


/* ==================================================
   EVENT CARDS
================================================== */

.ec-card{
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:16px;
  padding:14px 18px;
  margin-bottom:12px;
  box-shadow:0 5px 14px rgba(0,0,0,0.04);
  transition:all .2s ease;
}

.ec-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,0.06);
}

.ec-row{
  display:flex;
  align-items:center;
  gap:30px;
}

.ec-divider{
  display:none !important;
}

/* ==================================================
   DATE BADGE
================================================== */

.ec-date-block{
  flex:0 0 90px;
  width:90px;
  height:110px;
  border-radius:20px;
  background:#c18b2b;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  box-shadow:0 10px 20px rgba(0,0,0,0.12);
}

.ec-date-top{
  color:#fff;
  font-size:16px;
  font-weight:700;
  letter-spacing:2px;
  margin-bottom:4px;
}

.ec-date-day{
  color:#fff;
  font-size:42px;
  font-weight:800;
  line-height:1;
}

.ec-date-bottom{
  color:#fff;
  font-size:12px;
  font-weight:600;
  margin-top:4px;
}

/* ==================================================
   EVENT INFO
================================================== */

.ec-info{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ec-card h2,
.ec-card .ec-title{
  font-size:22px;
  font-weight:700;
  letter-spacing:1px;
  margin:0 0 6px 0 !important;
  line-height:1.2 !important;
}

.ec-artists{
  font-size:14px;
  line-height:1.25;
}

.ec-location-line{
  font-size:13px;
  color:#666;
}

/* ==================================================
   TICKET COLUMN
================================================== */

.ec-ticket-col{
  flex:0 0 200px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.ec-ticket-btn-large,
.ec-cover-badge{
  display:flex;
  justify-content:center;
  align-items:center;
  width:140px;
  height:38px;
  font-size:13px;
  font-weight:400;
  border:1px solid #c18b2b;
  border-radius:8px;
  text-decoration:none;
  color:#c18b2b;
  background:#fff;
  transition:.2s ease;
}

.ec-ticket-btn-large:hover,
.ec-cover-badge:hover{
  background:#c18b2b;
  color:#fff;
}

/* =========================
   MONTH HEADER LAYOUT
========================= */
.ec-list-header {
    max-width: 1000px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: flex-end;
}
.ec-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 20px auto;
}

.ec-month-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ec-month-title {
    text-align: center;
    flex: 1;
}

.ec-month-right {
    display: flex;
    align-items: center;
}

/* ==================================================
   MAP COLUMN
================================================== */

.ec-map{
  flex:0 0 210px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ec-map iframe{
  width:100%;
  height:110px;
  border:0;
  border-radius:12px;
}

.ec-map-links{
  display:flex;
  gap:6px;
  padding-top:6px;
}

.ec-map-btn{
  flex:1;
  text-align:center;
  font-size:10px;
  padding:4px 0;
  border:1px solid #c18b2b;
  border-radius:6px;
  text-decoration:none;
  color:#c18b2b;
  background:#fff;
  transition:.2s ease;
}

.ec-map-btn:hover{
  background:#c18b2b;
  color:#fff;
}

/* ==================================================
   MONTH VIEW
================================================== */

.ec-month-title{
  color:#c18b2b;
  font-weight:600;
  font-size:18px;
}

.ec-month-arrow,
.ec-this-month{
  color:#c18b2b;
  text-decoration:none;
  font-size:20px;
}

.ec-month-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:10px;
  margin-top:20px;
}

.ec-month-day-header{
  text-align:center;
  font-weight:bold;
  padding:10px;
  background:#f5f5f5;
}

.ec-month-cell{
  background:#f4f4f4;
  min-height:120px;
  padding:10px;
  border-radius:6px;
}

.ec-month-date{
  font-size:13px;
  margin-bottom:6px;
}

.ec-month-event{
  background:#c18b2b;
  color:#fff;
  padding:8px 10px;
  border-radius:6px;
  font-size:14px;
  cursor:pointer;
  margin-bottom:6px;
  transition:.2s ease;
}

.ec-month-event:hover{
  opacity:.9;
}

.ec-month-event-time{
  font-size:13px;
  margin-bottom:3px;
}

/* ==================================================
   PREMIUM MODAL
================================================== */

.ec-modal{
  position:fixed;
  inset:0;
  z-index:999999;

  display:none; /* JS sets to flex */

  justify-content:center;
  align-items:center;

  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);

  overflow-y:auto;
  -webkit-overflow-scrolling:touch;

  padding:20px;
}

.ec-modal-content{
  background:#fff;
  width:680px;
  max-width:100%;
  border-radius:20px;
  padding:40px;
  position:relative;

  box-shadow:0 30px 80px rgba(0,0,0,.25);
  animation:ecModalIn .25s ease;

  max-height:90vh;
  overflow-y:auto;
}

@keyframes ecModalIn{
  from{transform:translateY(20px);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}

.ec-close{
  position:absolute;
  right:20px;
  top:18px;
  font-size:24px;
  cursor:pointer;
  opacity:.5;
}

.ec-close:hover{
  opacity:1;
}

.ec-modal-card h2{
  font-size:26px;
  margin:0 0 8px 0;
}

.ec-modal-meta{
  font-size:14px;
  color:#777;
  margin-bottom:6px;
}

.ec-modal-venue{
  font-weight:600;
  margin-bottom:2px;
}

.ec-modal-card iframe{
  width:100%;
  height:200px;
  border:0;
  border-radius:12px;
  margin-top:10px;
}

.ec-modal-links{
  display:flex;
  gap:12px;
  margin-top:18px;
}

.ec-modal-btn{
  flex:1;
  text-align:center;
  padding:10px 0;
  border-radius:10px;
  font-size:13px;
  font-weight:400;
  text-decoration:none;
  border:1px solid #c18b2b;
  color:#c18b2b;
  transition:.2s ease;
}

.ec-modal-btn:hover{
  background:#c18b2b;
  color:#fff;
}

.ec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ec-modal-ticket {
    display: flex;
    align-items: center;
    justify-content: center;   /* ensures perfect centering */
    flex-shrink: 0;
}

.ec-modal-title h2 {
    margin: 0 0 5px 0;
}

.ec-ticket-price {
    font-weight: 400;
    margin-left: 4px;
}

.ec-modal-location {
    font-size:12px;      /* smaller */
    font-weight:400 !important;
    color:#777;
    margin-top:2px;
    margin-bottom:12px;
}

.ec-modal-notes {
    margin: 18px 0 22px;
    padding: 16px 18px;
    background: rgba(193,139,43,0.08);
    border-left: 3px solid #c18b2b;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}


.ec-view-toggle{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:20px;
}

.ec-toggle-btn{
  padding:8px 18px;
  border-radius:30px;
  border:1px solid #c18b2b;
  background:#fff;
  color:#c18b2b;
  text-decoration:none;
  font-size:14px;
  transition:.2s ease;
}

.ec-toggle-btn.active,
.ec-toggle-btn:hover{
  background:#c18b2b;
  color:#fff;
}

.ec-month-cell {
    position: relative;
}

.ec-past-x {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 14px;
    color: rgba(0,0,0,0.25);
    font-weight: 600;
    pointer-events: none;
}

/* Lighten past days (clean + professional) */
.ec-past-day {
    background: #fafafa !important;
}

/* Make the X slightly softer */
.ec-past-x {
    color: rgba(0,0,0,0.35);
}

.ec-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:18px 0;
  flex-wrap:wrap;
}

.ec-page-btn{
  padding:8px 14px;
  border:1px solid #c18b2b;
  border-radius:8px;
  background:#fff;
  color:#c18b2b;
  text-decoration:none;
  font-size:13px;
  line-height:1;
}

.ec-page-btn:hover{
  background:#c18b2b;
  color:#fff;
}

.ec-page-num{
  min-width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:8px;
  background:#fff;
  color:#333;
  text-decoration:none;
  font-size:13px;
}

.ec-page-num:hover{
  border-color:#c18b2b;
  color:#c18b2b;
}

.ec-page-num.is-active{
  background:#c18b2b;
  border-color:#c18b2b;
  color:#fff;
  font-weight:700;
}

/* === FORCE CARD TEXT COLORS (FIX DARK SECTION OVERRIDE) === */

.ec-wrapper .ec-card{
  color:#333 !important;
  opacity:1 !important;
}

.ec-wrapper .ec-card h2,
.ec-wrapper .ec-card .ec-title{
  color:#000 !important;
  opacity:1 !important;
}

.ec-wrapper .ec-card .ec-event-notes,
.ec-wrapper .ec-card .ec-event-notes *,
.ec-wrapper .ec-card .ec-artists,
.ec-wrapper .ec-card .ec-location-line{
  color:#333 !important;
  opacity:1 !important;
}

/* === FORCE MODAL TEXT COLORS (FIX DARK BACKGROUND OVERRIDE) === */

.ec-modal-content{
  color:#333 !important;
}

.ec-modal-content h2,
.ec-modal-content h3,
.ec-modal-content h4{
  color:#000 !important;
}

.ec-modal-content p,
.ec-modal-content span,
.ec-modal-content div,
.ec-modal-content li{
  color:#333 !important;
  opacity:1 !important;
}

.ec-modal-notes,
.ec-modal-notes *{
  color:#444 !important;
}

.ec-pro-wrapper{ position:relative; }
.ec-pro-wrapper.is-locked{ opacity:.6; }
.ec-pro-wrapper.is-locked input,
.ec-pro-wrapper.is-locked select,
.ec-pro-wrapper.is-locked textarea,
.ec-pro-wrapper.is-locked button{
  pointer-events:none;
}

.ec-pro-overlay{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  z-index:10;
}

.ec-pro-box{
  text-align:center;
  max-width:340px;
}

/* ==================================================
   MOBILE
================================================== */

/* ==================================================
   MOBILE
================================================== */

/* ==================================================
   MOBILE
================================================== */

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 900px){

  /* =========================
     EVENT CARDS STACK
  ========================= */
  .ec-row{
    flex-direction:column;
    text-align:center;
    gap:14px;
  }

  .ec-ticket-col,
  .ec-map{
    width:100%;
    flex:unset;
  }

  .ec-ticket-btn-large,
  .ec-cover-badge{
    width:100%;
  }

  .ec-map iframe{
    height:180px;
  }

  .ec-map-links{
    flex-direction:column;
  }

  /* Today highlight */
.ec-today {
    background: #ffffff !important;
    border: 2px solid #c18b2b;
    box-shadow: 0 6px 18px rgba(193,139,43,0.15);
}

/* Make the date number stronger */
.ec-today .ec-month-date {
    font-weight: 700;
    color: #c18b2b;
}
  

  /* =========================
     MONTH VIEW – FIX WIDTH + DOT EVENTS
  ========================= */

  /* Make sure the calendar cannot be wider than the phone */
  .ec-month-wrapper{
    max-width:1000px;   /* match desktop */
    margin:0 auto;      /* center */
    padding:0 16px;     /* white space on sides */
    box-sizing:border-box;
  }

  .ec-month-grid{
    width:100%;
    max-width:100%;
    box-sizing:border-box;

    display:grid;
    grid-template-columns:repeat(7, minmax(0, 1fr)); /* TRUE 7 equal columns */
    gap:14px;

    margin:0;
    padding:0;
  }


  /* Weekday headers: show single letters */
.ec-month-day-header{
  width:100%;
  box-sizing:border-box;
  text-align:center;

  padding:10px 6px;      /* match day cell side padding */
  border-radius:10px;    /* match day cell rounding */
  background:#f3f3f3;    /* same background */

  font-size:0;
  line-height:0;
}

  .ec-month-day-header::after{
    font-size:12px;
    font-weight:700;
    line-height:1;
    display:block;
  }

  .ec-month-day-header:nth-child(1)::after{ content:'S'; }
  .ec-month-day-header:nth-child(2)::after{ content:'M'; }
  .ec-month-day-header:nth-child(3)::after{ content:'T'; }
  .ec-month-day-header:nth-child(4)::after{ content:'W'; }
  .ec-month-day-header:nth-child(5)::after{ content:'T'; }
  .ec-month-day-header:nth-child(6)::after{ content:'F'; }
  .ec-month-day-header:nth-child(7)::after{ content:'S'; }

  /* Day cells should fill the column width (no skinny bars) */
 .ec-month-cell{
    width:100%;
    min-width:0;
    box-sizing:border-box;

    min-height:78px;
    padding:8px 6px;
    border-radius:10px;

    background:#f3f3f3;   /* ← ADD THIS */
    
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
}

  .ec-month-date{
    font-size:12px;
    line-height:1;
  }

  /* Each event becomes a clickable dot (stacked automatically) */
  .ec-month-event{
    width:12px;
    height:12px;
    min-height:12px;

    padding:0 !important;
    margin:2px 0 0 0 !important;

    border-radius:50%;
    background:#c18b2b;

    font-size:0;        /* hide event title text */
    line-height:0;
    overflow:hidden;

    cursor:pointer;
    display:block;
  }

  /* Hide the time line too (dot-only mode) */
  .ec-month-event-time{
    display:none !important;
  }

  /* =========================
     MODAL FIX (proper scrolling + not under nav)
  ========================= */



  /* When your JS sets display:flex, force block so scrolling works */
.ec-modal{
    position:fixed;
    inset:0;
    z-index:999999;

    display:none; /* KEEP HIDDEN */

    justify-content:center;
    align-items:flex-start;

    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    padding:90px 16px 40px;
}

.ec-modal-content{
  background:#fff;
  width:680px;
  max-width:100%;
  border-radius:20px;
  padding:40px;
  position:relative;

  box-shadow:0 30px 80px rgba(0,0,0,.25);
  animation:ecModalIn .25s ease;

  max-height:90vh;
  overflow-y:auto;
}

  .ec-modal-header{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    margin-bottom:18px;
  }

  .ec-modal-ticket{
    width:100%;
    justify-content:flex-start;
  }

  .ec-modal-links{
    flex-direction:column;
  }

  .ec-modal-notes{
    padding:14px;
    font-size:14px;
  }
.ec-month-header {
    flex-direction: column;
    align-items: center;
}

.ec-month-right {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Remove past + today styling on mobile */

.ec-past-x {
    display: none !important;
}

.ec-past-day {
    background: #f3f3f3 !important; /* same as normal mobile cells */
}



}