/* ==================================================
   GLOBAL WRAPPER
================================================== */

.ec-wrapper {
  max-width: 1000px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: visible;
}

/* ==================================================
   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;
  flex-direction: column;
  gap: 2px;
  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;
  position: relative; /* needed for X marker */
}

/* Today highlight (DESKTOP) */
.ec-month-cell.ec-today {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 2px #c18b2b, 0 6px 18px rgba(193,139,43,0.15);
  position: relative;
  z-index: 5;
}

.ec-month-cell.ec-today .ec-month-date {
  font-weight: 700;
  color: #c18b2b;
}

.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;
}

/* Past day background (desktop default) */
.ec-past-day {
  background: #fafafa !important;
}

/* ==================================================
   Past day: BIG centered X watermark (desktop + mobile)
================================================== */

.ec-month-cell.ec-past-day{
  position: relative !important;
  overflow: hidden; /* keep watermark inside rounded corners */
}

.ec-month-cell.ec-past-day::after{
  content: "×";
  position: absolute;
  inset: 0;                 /* fills the whole cell */
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 96px;          /* big watermark */
  font-weight: 800;
  line-height: 1;

  color: rgba(0,0,0,0.10);  /* faint */
  z-index: 1;
  pointer-events: none;
}

/* Keep date + dots above the watermark */
.ec-month-cell.ec-past-day .ec-month-date,
.ec-month-cell.ec-past-day .ec-month-event,
.ec-month-cell.ec-past-day .ec-month-event-time{
  position: relative;
  z-index: 2;
}
/* ==================================================
   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;
}

/* Modal ticket area: prevent ugly wrapping */
.ec-modal-ticket .ec-ticket-btn-large{
  width: 190px;
}

.ec-modal-ticket .ec-ticket-price{
  color: #000 !important;
  white-space: nowrap;
}

.ec-modal-title h2 { margin: 0 0 5px 0; }

.ec-ticket-price {
  font-weight: 400;
  margin-left: 4px;
}

.ec-ticket-label{
  display: block;
  white-space: nowrap;
}

.ec-ticket-btn-large .ec-ticket-price{
  display: block;
  margin-left: 0;
  line-height: 1.1;
}

.ec-modal-location {
  font-size: 12px;
  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;
}

/* ==================================================
   DESKTOP: MODAL TICKET BUTTON SPACING (DUAL PRICES)
================================================== */
@media (min-width: 901px) {

  /* Align header content to top so the ticket button doesn’t feel cramped */
  .ec-modal-header{
    align-items: flex-start;
  }

  /* Give the ticket area a bit more breathing room */
  .ec-modal-ticket{
    min-width: 220px;
  }

  /* Slightly wider ticket button inside the modal only */
  .ec-modal-ticket .ec-ticket-btn-large,
  .ec-modal-ticket .ec-cover-badge{
    width: 170px;
  }

  /* Make the second line (price) more compact */
  .ec-modal-ticket .ec-ticket-price{
    display: block;
    font-size: 12px;
    line-height: 1.1;
    margin-top: 2px;
  }
}

/* ==================================================
   VIEW TOGGLE
================================================== */

.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;
}

/* ==================================================
   PAGINATION
================================================== */

.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 + MODAL TEXT COLORS
================================================== */

.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;
}

.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;
}

/* Keep the button label in the button’s original (gold) color */
.ec-modal-content .ec-ticket-btn-large .ec-ticket-label{
  color: inherit !important;
}

/* But force the price black inside the modal */
.ec-modal-content .ec-ticket-btn-large .ec-ticket-price{
  color: #000 !important;
}

/* Allow ticket button text to keep its original button color (don’t force #333) */
.ec-modal-content .ec-ticket-btn-large span {
  color: inherit !important;
}

.ec-modal-notes,
.ec-modal-notes * { color: #444 !important; }

/* ==================================================
   PRO OVERLAY
================================================== */

.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
================================================== */

@media (max-width: 900px) {

  .ec-card{
    padding: 14px 14px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  }

  /* 2-column header: date badge + info */
  .ec-row{
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-template-areas:
      "date info"
      "ticket ticket"
      "map map";
    gap: 12px;
    align-items: start;
    text-align: left;
  }

  .ec-date-block{
    grid-area: date;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  }

  .ec-date-top{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
  }
  .ec-date-day{
    font-size: 26px;
    font-weight: 800;
  }
  .ec-date-bottom{
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
  }

  .ec-info{
    grid-area: info;
    gap: 6px;
    min-width: 0;
  }

  .ec-card h2,
  .ec-card .ec-title{
    font-size: 18px;
    line-height: 1.15 !important;
    letter-spacing: .2px;
    margin: 0 0 2px 0 !important;
  }

  .ec-artists{
    font-size: 13px;
    line-height: 1.25;
  }

  .ec-location-line{
    font-size: 12px;
    color: #666;
  }

  /* Full-width CTA row */
  .ec-ticket-col{
    grid-area: ticket;
    width: 100%;
    flex: unset;
    justify-content: flex-start;
    align-items: stretch;
  }

  .ec-ticket-btn-large,
  .ec-cover-badge{
    width: 100%;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
  }

  /* Map block: clean + compact + 2 buttons */
  .ec-map{
    grid-area: map;
    width: 100%;
    flex: unset;
    gap: 8px;
  }

  .ec-map iframe{
    height: 160px;
    border-radius: 14px;
  }

  /* List view actions (Call / Email / Website) on ONE row */
  .ec-map-links{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 0;
  }

  .ec-map-btn{
    font-size: 12px;
    padding: 10px 0;
    border-radius: 10px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ==================================================
     MOBILE: PROFESSIONAL MODAL (BOTTOM SHEET)
  ================================================== */

  .ec-modal{
    align-items: flex-end;
    padding: 0;
  }

  .ec-modal-content{
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px 22px;
    max-height: 92vh;
    box-shadow: 0 -20px 60px rgba(0,0,0,.30);
  }

  .ec-close{
    right: 10px;
    top: 10px;
    font-size: 28px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    opacity: 1;
  }

  .ec-modal-header{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ec-modal-card h2{
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 6px 0;
  }

  .ec-modal-ticket{
    width: 100%;
    justify-content: flex-start;
  }

  .ec-modal-card iframe{
    height: 220px;
    border-radius: 14px;
  }

  .ec-modal-notes{
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
  }



  /* Keep Call / Email / Website on ONE row on mobile */
  .ec-modal-links{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .ec-modal-btn{
    padding: 10px 0;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

/* Today highlight */
.ec-today {
  background: #ffffff !important;
  border: 1px solid #c18b2b;
  box-shadow: 0 6px 18px rgba(193,139,43,0.15);
  position: relative;
  z-index: 5;
}

  .ec-today .ec-month-date {
    font-weight: 700;
    color: #c18b2b;
  }

  /* Month view layout fixes */
  .ec-month-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .ec-month-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    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;
    border-radius: 10px;
    background: #f3f3f3;
    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'; }

 .ec-month-cell {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  min-height: 78px;
  padding: 8px 6px;
  border-radius: 10px;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

  .ec-month-date {
    font-size: 12px;
    line-height: 1;
  }

  /* Dot events */
  .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;
    line-height: 0;
    overflow: hidden;
    cursor: pointer;
    display: block;
  }

  .ec-month-event-time { display: none !important; }


  .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;
  }

  /* Keep your mobile past-day background the same as normal cells */
  .ec-past-day {
    background: #f3f3f3 !important;
  }

    /* FORCE list-view Call / Email / Website to stay on ONE row */
  .ec-card .ec-map-links{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .ec-card .ec-map-links .ec-map-btn{
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile: keep Buy Tickets in the button's gold color */
.ec-modal-content .ec-ticket-btn-large .ec-ticket-label{
  color: inherit !important;
}

/* Mobile: keep ticket price text black */
.ec-modal-content .ec-ticket-btn-large .ec-ticket-price{
  color: #000 !important;
}

}