/* MT Event Calendar — Calendar Widget Styles
 * Loaded only on pages that contain the Event Calendar widget.
 * Version controlled via EEC_VER constant in the plugin bootstrap.
 */
.eec-app{--eec-primary:#6366F1;font-family:inherit;box-sizing:border-box}
.eec-app *{box-sizing:border-box}
/* SVG icon normalisation — emoji, Font Awesome, or uploaded SVG all inherit colour */
.eec-app svg,.eec-modal-box svg{width:1em;height:1em;vertical-align:-0.125em;flex-shrink:0;display:inline-block;fill:currentColor}
.eec-share-btn svg{width:14px;height:14px;vertical-align:-0.1em}
/* Header */
.eec-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px;flex-wrap:wrap}
.eec-month-label{margin:0;font-size:22px;font-weight:700}
/* Nav buttons */
.eec-nav-btn{background:rgba(255,255,255,.12);border:1px solid transparent;color:#fff;border-radius:10px;padding:8px 16px;cursor:pointer;font-size:18px;transition:.15s}
.eec-nav-btn:hover{background:rgba(255,255,255,.22)}
/* View toggle */
.eec-view-switcher{display:flex;gap:6px;flex-wrap:wrap}
.eec-view-btn{display:flex;align-items:center;gap:8px;padding:7px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.15);cursor:pointer;background:rgba(255,255,255,.07);color:#fff;transition:.15s;text-align:left;min-width:90px}
.eec-view-btn:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3)}
.eec-view-btn.active{background:var(--eec-primary);border-color:var(--eec-primary);box-shadow:0 2px 12px rgba(99,102,241,.4)}
.eec-vbtn-icon{font-size:18px;line-height:1;flex-shrink:0}
.eec-vbtn-text{display:flex;flex-direction:column;gap:1px}
.eec-vbtn-label{font-size:13px;font-weight:700;line-height:1.2}
.eec-vbtn-sub{font-size:10px;opacity:.6;line-height:1.2;font-weight:400}
/* Today button */
.eec-today-btn{padding:6px 14px;border-radius:20px;border:1px solid rgba(255,255,255,.3);cursor:pointer;font-size:12px;font-weight:600;background:transparent;color:#fff;transition:.15s}
.eec-today-btn:hover{background:rgba(255,255,255,.1)}
/* Subscribe button */
.eec-subscribe-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;border:1px solid rgba(255,255,255,.3);font-size:12px;font-weight:600;background:transparent;color:#fff;text-decoration:none;transition:.15s}
.eec-subscribe-btn:hover{background:rgba(255,255,255,.1);color:#fff}
/* Search */
.eec-search-wrap{margin-bottom:14px;position:relative}
.eec-search-inp{width:100%;padding:9px 14px 9px 36px;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:rgba(255,255,255,.08);color:#fff;font-size:13px;outline:none}
.eec-search-inp::placeholder{color:rgba(255,255,255,.4)}
.eec-search-inp:focus{border-color:rgba(99,102,241,.8);outline:none}
.eec-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);opacity:.5;pointer-events:none}
/* Filters & legend */
.eec-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.eec-filter-btn{padding:5px 14px;border-radius:20px;border:none;cursor:pointer;font-size:12px;font-weight:600;background:rgba(255,255,255,.1);color:#fff;transition:.15s}
.eec-legend{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.eec-legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.7)}
.eec-legend-dot{width:9px;height:9px;border-radius:50%}
/* Month grid */
.eec-day-labels{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-bottom:5px}
.eec-day-label{text-align:center;font-size:11px;font-weight:700;padding:6px 0;text-transform:uppercase;color:rgba(255,255,255,.4)}
.eec-day-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.eec-day-cell{min-height:90px;background:rgba(255,255,255,.06);border-radius:10px;padding:8px;cursor:pointer;border:2px solid transparent;transition:.15s}
.eec-day-cell:hover{background:rgba(255,255,255,.12)}
.eec-day-cell.eec-other{opacity:.3}
.eec-day-cell.eec-today{background:rgba(99,102,241,.25);border-color:#6366F1}
.eec-day-num{font-size:13px;font-weight:600;color:rgba(255,255,255,.8);margin-bottom:4px}
.eec-today-badge{font-size:9px;background:var(--eec-primary);color:#fff;border-radius:4px;padding:1px 5px;margin-left:4px}
/* Event pills */
.eec-pill{font-size:10px;color:#fff;border-radius:5px;padding:2px 6px;margin-bottom:3px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-weight:600}
.eec-more{font-size:10px;color:rgba(255,255,255,.45);margin-top:1px}
/* Agenda / list view */
.eec-list-item{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.07);border-radius:12px;padding:14px 18px;margin-bottom:10px;cursor:pointer;transition:.15s;border-left:4px solid transparent}
.eec-list-item:hover{background:rgba(255,255,255,.12)}
.eec-list-img{width:64px;height:44px;object-fit:cover;border-radius:6px;flex-shrink:0}
.eec-list-date{min-width:44px;text-align:center;flex-shrink:0}
.eec-list-day{font-size:26px;font-weight:800;line-height:1}
.eec-list-month{font-size:10px;text-transform:uppercase;opacity:.5}
.eec-list-info{flex:1;min-width:0}
.eec-list-title{font-weight:700;font-size:15px;margin-bottom:3px;color:#fff}
.eec-list-meta{font-size:12px;opacity:.5;display:flex;gap:10px;flex-wrap:wrap}
.eec-cat-badge{font-size:11px;font-weight:700;border-radius:20px;padding:3px 12px;color:#fff;white-space:nowrap}
/* Cards / grid view */
.eec-grid-view{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.eec-grid-card{background:rgba(255,255,255,.07);border-radius:14px;overflow:hidden;cursor:pointer;transition:.15s}
.eec-grid-card:hover{background:rgba(255,255,255,.12);transform:translateY(-2px)}
.eec-grid-img{width:100%;height:160px;object-fit:cover;display:block}
.eec-grid-img-placeholder{width:100%;height:100px;background:rgba(255,255,255,.05);display:flex;align-items:center;justify-content:center;font-size:28px;opacity:.3}
.eec-grid-body{padding:14px}
.eec-grid-title{font-weight:700;font-size:14px;color:#fff;margin-bottom:5px;line-height:1.3}
.eec-grid-meta{font-size:11px;opacity:.6;color:#fff;line-height:1.7;margin-top:4px}
.eec-featured-star{font-size:12px;margin-left:4px}
.eec-cancelled-badge{display:inline-block;font-size:9px;background:#ef4444;color:#fff;border-radius:3px;padding:1px 5px;margin-left:5px;vertical-align:middle}
.eec-postponed-badge{display:inline-block;font-size:9px;background:#f59e0b;color:#fff;border-radius:3px;padding:1px 5px;margin-left:5px;vertical-align:middle}
/* Popup / modal */
.eec-modal-img{width:100%;max-height:260px;object-fit:cover;border-radius:10px;margin-bottom:14px}
/* Base styles for the modal box — Elementor controls override these via {{WRAPPER}} selectors */
.eec-modal-box{background:#1e1b4b;border-radius:20px;padding:28px;max-width:520px;width:100%;max-height:90vh;overflow-y:auto;position:relative;border:1px solid rgba(99,102,241,.3);box-shadow:0 20px 60px rgba(0,0,0,.5);color:#fff}
.eec-modal-title{margin:12px 0 8px;font-size:22px;font-weight:700;line-height:1.3;color:inherit}
/* opacity is used for hierarchy — colour is inherited from .eec-modal-box so Elementor Popup Text control works */
.eec-modal-detail{font-size:14px;margin:5px 0;display:flex;align-items:baseline;gap:6px;color:inherit;opacity:.8}
.eec-modal-desc{font-size:13px;line-height:1.7;margin-top:12px;color:inherit;opacity:.7}
.eec-maps-link{display:block;text-align:center;background:rgba(99,102,241,.2);color:#a5b4fc;border-radius:10px;padding:10px;font-size:13px;font-weight:600;text-decoration:none;border:1px solid rgba(99,102,241,.3);margin-top:12px;transition:.15s}
.eec-maps-link:hover{background:rgba(99,102,241,.35)}
.eec-maps-iframe{width:100%;height:180px;border-radius:8px;border:none;margin-top:12px}
.eec-join-btn{display:block;text-align:center;background:rgba(16,185,129,.2);color:#6ee7b7;border-radius:10px;padding:10px;font-size:13px;font-weight:600;text-decoration:none;border:1px solid rgba(16,185,129,.3);margin-top:12px;transition:.15s}
.eec-join-btn:hover{background:rgba(16,185,129,.35)}
.eec-share-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
.eec-share-btn{display:inline-flex;align-items:center;gap:5px;padding:7px 13px;border-radius:20px;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;transition:.15s;border:1px solid transparent}
.eec-share-wa  {background:rgba(37,211,102,.15);color:#25D366;border-color:rgba(37,211,102,.3)}.eec-share-wa:hover  {background:rgba(37,211,102,.3)}
.eec-share-fb  {background:rgba(66,103,178,.15);color:#6b9cf1;border-color:rgba(66,103,178,.3)}.eec-share-fb:hover  {background:rgba(66,103,178,.3)}
.eec-share-x   {background:rgba(29,161,242,.15);color:#60b3f4;border-color:rgba(29,161,242,.3)}.eec-share-x:hover   {background:rgba(29,161,242,.3)}
.eec-share-copy{background:rgba(255,255,255,.1);color:#ddd;border-color:rgba(255,255,255,.2)}.eec-share-copy:hover{background:rgba(255,255,255,.2)}
.eec-ical-btn{background:rgba(99,102,241,.2);color:#a5b4fc;border-color:rgba(99,102,241,.3)}.eec-ical-btn:hover{background:rgba(99,102,241,.35)}
.eec-tz-note{font-size:11px;opacity:.45;margin-top:6px}
/* Day sheet (mobile) */
.eec-ds-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99998}
.eec-ds-overlay.open{display:block}
.eec-day-sheet{position:fixed;bottom:0;left:0;right:0;z-index:99999;background:#1e1b4b;border-radius:20px 20px 0 0;padding:12px 20px 32px;max-height:70vh;overflow-y:auto;transform:translateY(100%);transition:transform .28s cubic-bezier(.4,0,.2,1)}
.eec-day-sheet.open{transform:translateY(0)}
.eec-ds-handle{width:40px;height:4px;border-radius:2px;background:rgba(255,255,255,.25);margin:0 auto 16px}
.eec-ds-heading{font-size:16px;font-weight:700;color:#fff;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.1)}
.eec-ds-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.07);cursor:pointer;transition:.15s}
.eec-ds-row:last-child{border-bottom:none}
.eec-ds-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.eec-ds-info{flex:1;min-width:0}
.eec-ds-title{font-size:15px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eec-ds-time{font-size:12px;color:rgba(255,255,255,.5);margin-top:2px}
.eec-ds-arrow{color:rgba(255,255,255,.3);font-size:20px;flex-shrink:0}
/* Misc */
.eec-no-results{text-align:center;padding:40px;opacity:.4}
/* Responsive — tablet */
@media(max-width:768px){
  .eec-header{flex-direction:column;align-items:stretch;gap:10px}
  .eec-day-cell{min-height:70px;padding:5px}.eec-day-grid{gap:3px}.eec-day-labels{gap:3px}
  .eec-day-label{font-size:10px}.eec-day-num{font-size:12px}.eec-pill{font-size:9px}
  .eec-list-item{padding:12px 14px;gap:10px}.eec-grid-view{grid-template-columns:repeat(2,1fr)}
}
/* Responsive — mobile */
@media(max-width:480px){
  .eec-app{padding:12px!important}.eec-day-grid{gap:2px}.eec-day-labels{gap:2px}
  .eec-day-cell{min-height:44px;padding:3px;border-radius:6px;border-width:1px}
  .eec-day-num{font-size:11px;margin-bottom:0}.eec-day-label{font-size:9px;padding:3px 0}
  .eec-today-badge{display:none}.eec-pill{display:none}.eec-more{display:none}
  .eec-day-cell.has-events::after{content:'';display:block;width:5px;height:5px;border-radius:50%;background:var(--eec-primary);margin:3px auto 0}
  .eec-month-label{font-size:17px}.eec-nav-btn{padding:6px 12px;font-size:16px}
  .eec-filter-btn{padding:4px 10px;font-size:11px}
  .eec-list-item{flex-wrap:wrap;padding:12px;gap:8px}
  .eec-list-img{width:100%;height:120px;order:-1}
  .eec-list-day{font-size:20px}.eec-list-title{font-size:14px}
  .eec-grid-view{grid-template-columns:1fr}
  .eec-modal-box{padding:20px 16px!important;border-radius:14px!important}
}
