.ma-cal,
.ma-cal *,
.ma-modal,
.ma-modal * {
  box-sizing: border-box;
}

.ma-cal {
  position: relative;
  isolation: isolate;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -92px;
  padding: 190px 20px 84px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #fffdf8 8%, #fff8ed 48%, #f5e6cf 100%);
}

.ma-header-shade {
  position: absolute;
  z-index: -1;
  top: 0; left: 0; right: 0;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,8,6,.78) 0%, rgba(20,15,10,.48) 42%, rgba(35,25,16,.16) 72%, rgba(35,25,16,0) 100%);
}

.ma-intro { position: relative; z-index: 1; margin: 0 auto 44px; }
.ma-season { margin-bottom: 30px; color: #c27b09; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 7px; text-transform: uppercase; }
.ma-intro h2 { margin: 0; color: #211a15; font-family: "Playfair Display", Georgia, serif; font-size: clamp(64px, 7vw, 96px); font-weight: 400; line-height: .95; letter-spacing: -2px; }

.ma-card {
  position: relative; z-index: 1;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 26px 32px 30px;
  background: rgba(255,255,255,.93);
  border: 1px solid #ddd4c8;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(80,55,25,.12);
}

.ma-top { min-height: 82px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; }
.ma-top h3 { margin: 0; color: #2a241f; font-family: "Playfair Display", Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1; }
.ma-top span { display: block; margin-top: 8px; color: #99938d; font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 4px; }

.ma-top button {
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #9b650c !important; background: #faf8f1 !important;
  border: 1px solid rgba(126,111,87,.38) !important; border-radius: 50%;
  appearance: none; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.ma-top button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ma-top button:hover:not(:disabled), .ma-top button:focus:not(:disabled) { border-color: #c48722 !important; transform: scale(1.08); }
.ma-top button:disabled { opacity: .2; cursor: default; }

.ma-week, .ma-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.ma-week { padding-top: 18px; border-top: 1px solid #ece6de; }
.ma-week span { padding: 8px 2px; color: #918c87; font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.ma-days { gap: 7px; }
.ma-day { min-height: 72px; padding: 9px 3px; color: #99938e; background: transparent; border: 1px solid transparent; border-radius: 13px; font-family: Inter, Arial, sans-serif; font-size: 18px; font-weight: 500; }
button.ma-day { width: 100%; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }

.ma-event { color: #251f1a !important; background: linear-gradient(#fff, #f6f1e9) !important; border-color: #ddd5ca !important; box-shadow: 0 5px 12px rgba(70,50,30,.07); }
.ma-event:hover, .ma-event:focus { border-color: #c48722 !important; transform: scale(1.045); box-shadow: 0 8px 18px rgba(100,68,28,.12); }

.ma-icons { display: block; margin-top: 6px; font-size: 17px; }
.ma-empty { visibility: hidden; }

.ma-legend { margin-top: 26px; display: flex; justify-content: center; gap: 28px; font-family: Inter, Arial, sans-serif; font-size: 13px; }
.ma-legend b { color: #514b45; font-weight: 500; }
.ma-haunted { color: #a91920; }
.ma-enchanted { color: #d78708; }

/* Popup */
.ma-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 18px; }
.ma-modal.open { display: flex; }
.ma-shade { position: absolute; inset: 0; background: rgba(25,15,8,.62); }

.ma-popup {
  position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; padding: 30px; overflow-y: auto;
  background: linear-gradient(145deg, #fffaf2, #f4e1c5);
  border: 1px solid rgba(100,76,48,.15); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: left;
}
.ma-popup h3 { margin: 0 50px 6px 0; color: #2a211a; font-family: "Playfair Display", Georgia, serif; font-size: 31px; font-weight: 500; }
.ma-popup h4 { margin: 22px 0 12px; color: #2a211a; font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 500; }
.ma-popup > p { margin: 0 0 20px; color: #766d64; font-family: Inter, Arial, sans-serif; font-size: 13px; }

.ma-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #615b4e !important; background: rgba(255,255,255,.35) !important;
  border: 1px solid rgba(82,86,70,.68) !important; border-radius: 50%;
  appearance: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease;
}
.ma-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ma-close:hover, .ma-close:focus { border-color: #9b650c !important; transform: scale(1.08); }

.ma-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.ma-options button {
  position: relative; min-height: 62px; padding: 12px 34px 12px 12px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid; border-radius: 11px; font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 600;
  appearance: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.ma-modal .ma-options button[data-type="haunted"] { color: #a91920 !important; background: rgba(255,255,255,.55) !important; border-color: rgba(169,25,32,.72) !important; }
.ma-modal .ma-options button[data-type="haunted"]:not(.active):hover,
.ma-modal .ma-options button[data-type="haunted"]:not(.active):focus {
  color: #fff !important; background: linear-gradient(180deg, #c8272e, #9d1118) !important; border-color: #8d0e14 !important; outline: none !important; transform: scale(1.025); box-shadow: 0 8px 18px rgba(169,25,32,.22) !important;
}
.ma-modal .ma-options button[data-type="enchanted"] { color: #cf7c00 !important; background: rgba(255,255,255,.55) !important; border-color: rgba(217,136,11,.72) !important; }
.ma-modal .ma-options button[data-type="enchanted"]:not(.active):hover,
.ma-modal .ma-options button[data-type="enchanted"]:not(.active):focus {
  color: #372300 !important; background: linear-gradient(180deg, #ffd05a, #e5a416) !important; border-color: #d18c00 !important; outline: none !important; transform: scale(1.025); box-shadow: 0 8px 18px rgba(217,136,11,.24) !important;
}

.ma-modal .ma-options button[data-type="haunted"].active,
.ma-modal .ma-options button[data-type="haunted"].active:hover,
.ma-modal .ma-options button[data-type="haunted"].active:focus {
  color: #fff !important; background: linear-gradient(180deg, #c8272e, #9d1118) !important; border-color: #8d0e14 !important; outline: none !important; transform: scale(1.025); box-shadow: 0 8px 18px rgba(169,25,32,.25) !important;
}
.ma-modal .ma-options button[data-type="enchanted"].active,
.ma-modal .ma-options button[data-type="enchanted"].active:hover,
.ma-modal .ma-options button[data-type="enchanted"].active:focus {
  color: #372300 !important; background: linear-gradient(180deg, #ffd05a, #e5a416) !important; border-color: #d18c00 !important; outline: none !important; transform: scale(1.025); box-shadow: 0 8px 18px rgba(217,136,11,.25) !important;
}
.ma-options button.active::after {
  content: "✓"; position: absolute; top: 8px; right: 9px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; color: currentColor;
  background: rgba(255,255,255,.92); border-radius: 50%; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700;
}

.ma-times { margin-top: 20px; }
.ma-times > p { padding: 26px 12px; color: #786e64; border: 1px dashed #b9a98f; border-radius: 10px; font-family: Inter, Arial, sans-serif; font-size: 13px; text-align: center; }

.ma-slot {
  min-height: 48px; display: grid; grid-template-columns: 1fr 1fr 85px; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(80,65,48,.12); font-family: Inter, Arial, sans-serif; font-size: 13px;
}
.ma-slot strong { font-size: 14px; }
.ma-slot em { color: #4d7943; font-style: normal; }
.ma-slot button.ma-slot-select {
  padding: 8px 12px; color: #4b3316 !important; background: #edc06b !important; border: none; border-radius: 18px;
  font-size: 11px; font-weight: 600; text-align: center; cursor: pointer; transition: transform .18s ease;
}
.ma-slot button.ma-slot-select:hover, .ma-slot button.ma-slot-select:focus { transform: scale(1.05); }
.ma-slot button.ma-slot-select.selected { background: #4d7943 !important; color: #fff !important; }

/* Booking form */
.ma-booking-form { margin-top: 8px; border-top: 1px solid rgba(80,65,48,.15); padding-top: 16px; }
.ma-field { margin-bottom: 12px; }
.ma-field label { display: block; margin-bottom: 5px; color: #4b3f33; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 600; }
.ma-field input {
  width: 100%; padding: 10px 12px; font-family: Inter, Arial, sans-serif; font-size: 14px; color: #2a211a;
  background: #fff; border: 1px solid rgba(100,76,48,.28); border-radius: 8px;
}
.ma-field input:focus { outline: none; border-color: #c48722; }

.ma-submit-btn {
  width: 100%; padding: 13px; margin-top: 4px; color: #fff !important;
  background: linear-gradient(180deg, #d78708, #b5680a) !important; border: none; border-radius: 10px;
  font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
.ma-submit-btn:hover:not(:disabled) { transform: scale(1.015); }
.ma-submit-btn:disabled { opacity: .6; cursor: default; }

.ma-form-message { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-family: Inter, Arial, sans-serif; font-size: 13px; }
.ma-form-message.success { background: #d4edda; color: #155724; }
.ma-form-message.error { background: #f8d7da; color: #721c24; }

.ma-notice { margin-bottom: 16px; padding: 10px 12px; background: #f8d7da; color: #721c24; border-radius: 8px; font-family: Inter, Arial, sans-serif; font-size: 13px; }

@media (max-width: 768px) {
  .ma-cal { margin-top: -82px; padding: 165px 14px 68px; }
  .ma-header-shade { height: 135px; }
  .ma-intro h2 { font-size: 62px; }
}

@media (max-width: 600px) {
  .ma-cal { margin-top: -72px; padding: 145px 10px 58px; }
  .ma-header-shade { height: 120px; }
  .ma-season { margin-bottom: 23px; font-size: 8px; letter-spacing: 3px; }
  .ma-intro { margin-bottom: 34px; }
  .ma-intro h2 { font-size: 49px; letter-spacing: -1px; }
  .ma-card { padding: 18px 9px 22px; }
  .ma-top { grid-template-columns: 40px 1fr 40px; }
  .ma-top button { width: 38px; height: 38px; }
  .ma-top h3 { font-size: 27px; }
  .ma-days { gap: 3px; }
  .ma-day { min-height: 53px; padding: 6px 1px; font-size: 14px; }
  .ma-icons { font-size: 12px; }
  .ma-week span { font-size: 8px; }
  .ma-legend { flex-wrap: wrap; gap: 10px 18px; font-size: 11px; }
  .ma-modal { padding: 0; align-items: flex-end; }
  .ma-popup { width: 100%; padding: 27px 17px 24px; border-radius: 20px 20px 0 0; }
  .ma-options { grid-template-columns: 1fr; }
}

.elementor-widget-html,
.elementor-widget-html > .elementor-widget-container {
  width: 100%; max-width: none; margin: 0 !important; padding: 0 !important;
}
