:root{
  --primary-color: #000000;
  --accent-color: #f89622;
  --background-color: #ffffff;
  --button-color: #f89622;
  --button-text-color: #ffffff;
  --button-hover: #f89622;
  --button-text-hover-color: #ffffff;
  --text-color: #000000;
  --row-alt: #fdf4e8;
  --row-hover: #ffe0b3;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'Roboto',sans-serif;
  background:var(--background-color);
  color:var(--text-color);
  line-height:1.6;
}

/* Hide anything meant only for print when on screen */
.print-only,
#print-view {
  display: none !important;
}

main{
  display:flex;
  flex-wrap:wrap;
  max-width:1500px;
  margin:20px auto;
  background:var(--background-color);
  border-radius:2px;
  overflow:hidden;
}
.box{padding:24px 28px}
.left{flex:6;min-width:300px;background:#ffffff;border-right:1px solid #eee;border-radius:2px}
.right{flex:4;min-width:280px;background:var(--background-color)}
h2{font-family:'Balthazar',serif;font-size:1.3em;margin-bottom:12px;border-bottom:1px solid var(--primary-color);padding-bottom:6px;color:var(--primary-color);font-weight:600}
.event{margin:14px 0;padding:16px;background:var(--background-color);border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.08);border-left:4px solid var(--accent-color);}
.event time{font-weight:bold;color:var(--primary-color);display:block;font-size:1.1em;}
.event small{color:var(--primary-color);display:block;margin-top:2px;font-size:.95em;font-weight:600;}
.event-desc{font-style:italic;margin:6px 0 4px;font-size:.92em;color:#555}
.phone{font-size:.88em;color:var(--accent-color);margin-top:3px}
.phone a{color:var(--accent-color);text-decoration:none}
.phone a:hover{color:var(--accent-color);text-decoration:underline}
a:not(.btn):not(.print-btn):not(.email-me-btn):not(#dir){color:var(--primary-color);text-decoration:none;}
a:not(.btn):not(.print-btn):not(.email-me-btn):not(#dir):hover{color:var(--accent-color);text-decoration:underline;}
.no-print{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.btn-row{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.btn-group{display:flex;flex-direction:column;align-items:center;gap:4px}
.icons{display:flex;gap:6px}
.btn{width:36px;height:36px;border-radius:6px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 2px rgba(0,0,0,.15);cursor:pointer;border:2px solid var(--primary-color);background:var(--background-color);color:var(--primary-color);transition:.15s;}
.btn:hover,.btn:focus{background:var(--accent-color);color:var(--button-text-color);border-color:var(--accent-color);transform:translateY(-1px);box-shadow:0 2px 4px rgba(0,0,0,.2);}
img{width:16px;height:16px}
.ig-btn i{font-size:18px}
.group-label{font-size:11px;font-weight:700;color:var(--primary-color);text-align:center}
.separator{color:#bbb;font-weight:bold;font-size:1.2em}
.address{font-weight:bold;margin-bottom:12px;color:var(--primary-color)}
.print-btn,.email-me-btn{width:100%;padding:12px 14px;border:1px solid var(--primary-color);border-radius:3px;font-weight:600;cursor:pointer;margin-top:8px;background:var(--background-color);color:var(--primary-color);transition:.2s;font-size:1em;font-family:'Roboto',sans-serif;}
.print-btn:hover,.email-me-btn:hover{background:var(--button-hover);color:var(--background-color);}
#dir{background:var(--background-color);color:var(--primary-color);border:1px solid var(--primary-color);padding:12px 14px;text-align:center;display:block;border-radius:3px;text-decoration:none;font-weight:600;transition:.2s;}
#dir:hover{background:var(--button-hover);color:var(--background-color);}
.expired{opacity:.6;background:var(--row-alt);border-left:3px solid #ccc}
.expired *{color:#777!important}
.expired .no-print{display:none!important}

/* RESPONSIVE */
@media(max-width:768px){
  main{flex-direction:column}
  .left{border-right:none;border-bottom:1px solid #eee;box-shadow:0 2px 8px rgba(0,0,0,.08);border-radius:12px}
  .right{border-top:1px solid #eee}
  .btn-row{flex-direction:column;align-items:stretch;gap:12px}
  .btn-group{flex-direction:column;gap:6px}
  .separator{display:none}
}
@media(min-width:769px){
  .right{order:2}
  .left{order:1}
}

/* MODAL + SUCCESS */
.modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);justify-content:center;align-items:center;z-index:1000;}
.modal-content{background:var(--background-color);padding:24px;border-radius:12px;width:90%;max-width:420px;text-align:center;box-shadow:0 8px 25px rgba(0,0,0,.2);}
.modal-content h3{font-size:1.4em;margin-bottom:12px;color:var(--primary-color);font-weight:600}
.modal-content p{font-size:.95em;color:#555;margin-bottom:16px}
.modal-content input{width:100%;padding:12px;margin:10px 0;border:1px solid #ddd;border-radius:6px;font-size:1em;font-family:'Roboto',sans-serif;}
.modal-content .btn-row{display:flex;gap:10px;margin-top:16px;position:relative;}
.modal-content button{flex:1;padding:11px;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:.2s;font-family:'Roboto',sans-serif;}
#sendEmailBtn{background:var(--background-color);color:var(--primary-color);border:1px solid var(--primary-color);}
#sendEmailBtn:hover{background:var(--accent-color);color:var(--background-color);}
#sendEmailBtn:disabled{background:#ccc;cursor:not-allowed}
#cancelBtn{background:#eee;color:var(--primary-color);}
#cancelBtn:hover{background:#ddd}
.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20px;height:20px;border:3px solid var(--button-text-color);border-top:3px solid transparent;border-radius:50%;animation:spin 1s linear infinite;display:none;z-index:10;}
@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.success-popup{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:var(--accent-color);color:var(--button-text-color);padding:12px 28px;border-radius:6px;font-weight:600;z-index:1001;display:none;box-shadow:0 4px 12px rgba(0,0,0,.15);font-family:'Roboto',sans-serif;}

/* ——————— PRINT-ONLY STYLES ——————— */
@media print {
  @page { margin:0.6in; size:Letter portrait; }
  body * { visibility:hidden !important; }
  #print-view, #print-view * { visibility:visible !important; }
  #print-view { 
    position:absolute; 
    left:0; 
    top:0; 
    width:100%; 
    display:block !important; 
  }

  :root{--primary:#000;--accent:#f89622;--light:#fff;}
  #print-view{font-family:'Roboto',sans-serif;background:white;color:#000;line-height:1.5;}
  #print-view .header{text-align:center;padding:12px 0 20px;border-bottom:4px solid var(--accent);background:var(--light);margin-bottom:30px;}
  #print-view .header-row{max-width:720px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;}
  #print-view .header-logo img{height:70px;width:auto;}
  #print-view .header-phone{font-size:16px;line-height:1.4;text-align:right;font-weight:bold;}
  #print-view .header-email{font-size:14px;line-height:1.4;text-align:right;}
  #print-view h1{font-family:'Balthazar',serif;text-align:center;font-size:22px;margin:0;}
  #print-view .address{text-align:center;font-weight:bold;font-size:16px;margin:20px 0;}
  #print-view .print-map{text-align:center;margin:30px 0;}
  #print-view .print-map img {
    width: 100% !important;
    max-width: 720px !important;
    min-width: 300px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  #print-view .event{margin:25px 0;padding:16px;border-left:7px solid var(--accent);background:#fff;page-break-inside:avoid;}
  #print-view .event time{font-weight:bold;font-size:17px;display:block;margin-bottom:4px;}
  #print-view .event .title{font-weight:600;font-size:16px;margin:6px 0 10px;}
  #print-view .event .desc{font-size:14px;margin:8px 0;color:#333;}
  #print-view .event .phone{margin-top:10px;font-size:14px;}
  #print-view .event .phone a{color:var(--accent);text-decoration:none;}
  #print-view .motto{margin-top:60px;padding-top:30px;border-top:4px double var(--accent);text-align:center;font-size:16px;font-weight:bold;font-style:italic;}
}