/* مهرجان محايل — plan.css (WordPress build)
   Styles for the ONE non-native element (the interactive booth plan rendered by plan.js)
   plus the small dynamic status pills. Every colour reads the Elementor Global Colors so the
   plan rebrands from Site Settings. Layout is flex only. */
.mhy-plan, .mhy-plan * { box-sizing: border-box; }
.mhy-plan { --navy: var(--e-global-color-primary, #0E2340); --saffron: var(--e-global-color-secondary, #F5A623); --stone: var(--e-global-color-stone, #EEE8DD); --stone-deep: var(--e-global-color-stonedeep, #DDD4C4); --ink: var(--e-global-color-text, #0E2340); --ink-soft: var(--e-global-color-inksoft, #4A5568); --ink-mute: var(--e-global-color-inkmute, #7A8494); --line: var(--e-global-color-line, rgba(14,35,64,.12)); --teal: var(--e-global-color-teal, #1FAF9F); --coral: var(--e-global-color-coral, #F04E4E); --display: var(--e-global-typography-secondary-font-family, "Tajawal"), sans-serif; --ease: cubic-bezier(.22,.61,.36,1); color: var(--ink); font-family: var(--e-global-typography-text-font-family, "IBM Plex Sans Arabic"), sans-serif; }
.mhy-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Board */
.mhy-plan .plan-board { background: var(--stone); border-radius: 14px; padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--stone-deep); }
.mhy-plan--preview .plan-board { padding: 0; border: 0; background: transparent; }
.mhy-plan .plan-rows { display: flex; flex-direction: column; gap: 1rem; }
.mhy-plan .plan-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.mhy-plan .plan-zone { flex: 1 1 180px; min-width: 0; background: #fff; border-radius: 10px; padding: .8rem; border: 1px solid var(--stone-deep); transition: opacity .25s var(--ease), box-shadow .25s var(--ease); }
.mhy-plan .plan-zone.is-dim { opacity: .35; }
.mhy-plan .plan-zone.is-active { box-shadow: 0 0 0 2px var(--navy); }
.mhy-plan .plan-zone__head { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .6rem; }
.mhy-plan .plan-zone__head strong { font-family: var(--display); font-size: .98rem; line-height: 1.3; color: var(--ink); }
.mhy-plan .plan-zone__head small { color: var(--ink-mute); font-size: .82rem; }
.mhy-plan .plan-zone__booths { display: flex; flex-wrap: wrap; gap: 6px; }
.mhy-plan .plan-center { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; padding: .7rem 1rem; border-radius: 10px; border: 1px dashed var(--stone-deep); color: var(--ink-mute); font-size: .92rem; }
.mhy-plan .plan-center span { display: inline-flex; align-items: center; gap: .4rem; }
.mhy-plan .plan-center--spine { flex: 0 0 132px; flex-direction: column; text-align: center; gap: .4rem; padding: .7rem .5rem; }
.mhy-plan .plan-center--spine small { display: block; font-size: .8rem; color: var(--ink-mute); }
.mhy-plan .plan-gate { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .35rem .8rem; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; }
.mhy-plan .plan-gate .mhy-icon { color: var(--saffron); }

/* Booths */
.mhy-plan .booth { flex: 0 0 calc((100% - 24px) / 5); min-width: 0; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; border: 2px solid transparent; background: none; padding: 0; margin: 0; cursor: default; line-height: 1; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.mhy-plan button.booth[data-status="available"] { cursor: pointer; }
.mhy-plan .booth[data-status="available"] { background: rgba(31,175,159,.16); color: #0b5f56; border-color: rgba(31,175,159,.55); }
.mhy-plan .booth[data-status="reserved"] { background: rgba(245,166,35,.2); color: #7d5005; border-color: rgba(217,140,15,.6); }
.mhy-plan .booth[data-status="booked"] { background: rgba(240,78,78,.14); color: #8f1d1d; border-color: rgba(240,78,78,.45); }
.mhy-plan .booth[data-status="reserved"]::after, .mhy-plan .booth[data-status="booked"]::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mhy-plan .booth[data-status="booked"]::after { border-radius: 1px; }
.mhy-plan button.booth:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(14,35,64,.15); }
.mhy-plan .booth.is-selected { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.mhy-plan .booth:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* Legend swatches + status pill (used by native Text Editor widgets too) */
.mhy-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; margin-inline-end: .5rem; }
.mhy-swatch[data-status="available"] { background: rgba(31,175,159,.16); border: 2px solid rgba(31,175,159,.55); }
.mhy-swatch[data-status="reserved"] { background: rgba(245,166,35,.2); border: 2px solid rgba(217,140,15,.6); }
.mhy-swatch[data-status="booked"] { background: rgba(240,78,78,.14); border: 2px solid rgba(240,78,78,.45); }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; background: var(--e-global-color-stone, #EEE8DD); color: var(--e-global-color-text, #0E2340); line-height: 1.5; }
.status::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.status[data-status="available"] { background: rgba(31,175,159,.14); color: #0d6f64; }
.status[data-status="reserved"] { background: rgba(245,166,35,.18); color: #8a5a06; }
.status[data-status="booked"] { background: rgba(240,78,78,.14); color: #a12626; }
.status[data-status="closed"] { background: var(--e-global-color-stone, #EEE8DD); color: var(--e-global-color-inkmute, #7A8494); }

/* Info card (map + booking pages) */
.mhy-plan .info-card__empty { color: var(--ink-mute); text-align: center; padding: 2rem 1rem; }
.mhy-plan .info-card__empty .mhy-icon { width: 40px; height: 40px; margin: 0 auto .8rem; color: var(--stone-deep); display: block; }
.mhy-plan .info-card__num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--navy); margin-bottom: .8rem; }
.mhy-plan .info-card__num small { font-size: 1rem; font-weight: 700; color: var(--ink-mute); margin-inline-end: .4rem; }
.mhy-plan dl { display: flex; flex-direction: column; gap: .6rem; margin: 1.2rem 0; }
.mhy-plan dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.mhy-plan dt { color: var(--ink-mute); font-size: .95rem; }
.mhy-plan dd { margin: 0; font-weight: 600; text-align: end; }
.mhy-plan .info-card__render { margin: 1rem 0; display: flex; gap: 1rem; align-items: center; }
.mhy-plan .info-card__render img { width: 110px; height: auto; border-radius: 8px; flex: none; }
.mhy-plan .info-card__render p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.mhy-plan .note { margin: .8rem 0 0; font-size: .88rem; color: var(--ink-mute); }

/* Buttons rendered by the plan (mirror the Elementor global button) */
.mhy-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .6rem 1.4rem; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1; border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); width: 100%; }
.mhy-btn--primary { background: var(--saffron); color: var(--navy); border-color: var(--saffron); }
.mhy-btn--primary:hover { background: var(--e-global-color-accent, #D98C0F); border-color: var(--e-global-color-accent, #D98C0F); color: var(--navy); }
.mhy-btn--outline { background: transparent; color: var(--navy); border-color: currentColor; }
.mhy-btn--outline:hover { background: var(--navy); color: #fff; }
.mhy-btn[aria-disabled="true"], .mhy-btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.mhy-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mhy-row .mhy-btn { width: auto; min-height: 42px; padding: .4rem 1.1rem; font-size: .95rem; }

/* Booth list */
.mhy-plan ul[data-booth-list] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mhy-plan ul[data-booth-list] li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.mhy-plan ul[data-booth-list] strong { font-family: var(--display); font-size: 1.05rem; }
.mhy-plan .muted { color: var(--ink-mute); font-size: .9rem; }

/* Section-picker state (native Elementor buttons / containers carry data-section-pick) */
[data-section-pick].is-picked .elementor-button, .elementor-button[data-section-pick].is-picked { background: var(--e-global-color-primary, #0E2340) !important; color: #fff !important; border-color: var(--e-global-color-primary, #0E2340) !important; }
.e-con[data-section-pick] { cursor: pointer; }
.e-con[data-section-pick].is-picked { box-shadow: 0 0 0 2px var(--e-global-color-primary, #0E2340); }

@media (max-width: 760px) {
  .mhy-plan .plan-row { flex-direction: column; }
  .mhy-plan .plan-center--spine { flex-basis: auto; padding: .6rem; }
}
