/* Event Centre module (1.19.0). Built on the platform tokens (--rp-*) so it follows the site's colours. All selectors are prefixed .ec- */
.ec-wrap { max-width: 1240px; margin: 0 auto; color: var(--rp-text); }
.ec-muted { color: var(--rp-muted); }
.ec-small { font-size: 12.5px; }
.ec-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ec-between { justify-content: space-between; }
.ec-hide { display: none !important; }
.ec-card { background: var(--rp-bg-card); border: 1px solid var(--rp-border); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); }
.ec-pad { padding: 18px 20px; }
.ec-h { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.ec-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--rp-primary-l); color: var(--rp-primary); font-size: 12px; font-weight: 600; }
.ec-chip.is-ok { background: var(--rp-success-bg); color: var(--rp-success); }
.ec-chip.is-warn { background: var(--rp-warning-bg); color: var(--rp-warning); }
.ec-chip.is-bad { background: var(--rp-danger-bg); color: var(--rp-danger); }
.ec-chip.is-plain { background: var(--rp-bg); color: var(--rp-muted); }
.ec-stars { color: #F59E0B; letter-spacing: 1px; }
.ec-msg { margin: 0 0 12px; }

/* ── search ─────────────────────────────── */
.ec-search { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.ec-filters { padding: 16px; position: sticky; top: 16px; }
.ec-filters label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 4px; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .03em; }
.ec-filters input[type=text], .ec-filters input[type=number], .ec-filters input[type=date], .ec-filters select { width: 100%; }
.ec-filters .ec-checks { display: grid; gap: 4px; max-height: 170px; overflow: auto; }
.ec-filters .ec-checks label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; margin: 0; color: var(--rp-text); display: flex; gap: 6px; align-items: center; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ec-venue { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--rp-transition), transform var(--rp-transition); text-decoration: none; color: inherit; }
.ec-venue:hover { box-shadow: var(--rp-shadow-md); transform: translateY(-2px); }
.ec-venue-img { aspect-ratio: 16 / 10; background: var(--rp-bg) center / cover no-repeat; position: relative; }
.ec-venue-img .ec-chip { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.94); }
.ec-venue-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ec-venue-body h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.ec-venue-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--rp-muted); }
.ec-venue-price { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--rp-muted); }
.ec-venue-price strong { font-size: 17px; color: var(--rp-text); }
.ec-pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0 4px; flex-wrap: wrap; }
.ec-pager a, .ec-pager span { padding: 7px 13px; border: 1px solid var(--rp-border); border-radius: 8px; text-decoration: none; font-size: 14px; background: var(--rp-bg-card); color: var(--rp-text); }
.ec-pager .is-on { background: var(--rp-primary); border-color: var(--rp-primary); color: #fff; }

/* ── detail ─────────────────────────────── */
.ec-detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.ec-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.ec-fact { padding: 12px 14px; background: var(--rp-bg); border-radius: var(--rp-radius-sm); }
.ec-fact b { display: block; font-size: 16px; }
.ec-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ec-section { margin: 26px 0; }
.ec-section > h2 { font-size: 18px; margin: 0 0 12px; }
.ec-addon-list { display: grid; gap: 10px; }
.ec-addon { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--rp-border); border-radius: var(--rp-radius-sm); background: var(--rp-bg-card); align-items: flex-start; }
.ec-addon img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ec-addon-ico { width: 54px; height: 54px; border-radius: 10px; background: var(--rp-primary-l); color: var(--rp-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ec-addon-main { flex: 1; min-width: 0; }
.ec-addon-main h4 { margin: 0; font-size: 14.5px; }
.ec-addon-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--rp-muted); }
.ec-addon-side { text-align: right; white-space: nowrap; font-size: 13px; }
.ec-addon.is-off { opacity: .55; }
.ec-addon.is-on { border-color: var(--rp-primary); background: var(--rp-primary-l); }
.ec-qty { display: inline-flex; align-items: center; border: 1px solid var(--rp-border); border-radius: 8px; overflow: hidden; background: var(--rp-bg-card); margin-top: 6px; }
.ec-qty button { border: 0; background: transparent; width: 30px; height: 30px; font-size: 16px; cursor: pointer; color: var(--rp-text); }
.ec-qty input { width: 44px; text-align: center; border: 0; padding: 0; height: 30px; background: transparent; -moz-appearance: textfield; }
.ec-reviews .ec-review { padding: 14px 0; border-top: 1px solid var(--rp-border); }

/* booking widget */
.ec-book { position: sticky; top: 16px; padding: 18px; }
.ec-book h3 { margin: 0 0 4px; font-size: 17px; }
.ec-steps { display: flex; gap: 6px; margin: 12px 0 14px; }
.ec-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--rp-border); font-style: normal; }
.ec-steps i.is-on { background: var(--rp-primary); }
.ec-step-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rp-muted); margin-bottom: 8px; }
.ec-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; }
.ec-cal-head button { border: 1px solid var(--rp-border); background: var(--rp-bg-card); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.ec-cal-head button:disabled { opacity: .4; cursor: default; }
.ec-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ec-cal .dow { font-size: 11px; color: var(--rp-muted); padding: 4px 0; }
.ec-cal button { border: 1px solid transparent; background: var(--rp-bg); border-radius: 8px; height: 38px; cursor: pointer; font-size: 13.5px; color: var(--rp-text); position: relative; }
.ec-cal button.is-free { background: var(--rp-success-bg); color: var(--rp-success); font-weight: 600; }
.ec-cal button.is-part { background: var(--rp-warning-bg); color: var(--rp-warning); font-weight: 600; }
.ec-cal button.is-full, .ec-cal button.is-closed, .ec-cal button.is-past { background: var(--rp-bg); color: #A0A8BD; cursor: not-allowed; text-decoration: line-through; }
.ec-cal button.is-sel { background: var(--rp-primary); color: #fff; border-color: var(--rp-primary); text-decoration: none; }
.ec-cal .blank { visibility: hidden; }
.ec-legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--rp-muted); margin-top: 8px; flex-wrap: wrap; }
.ec-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ec-opts { display: grid; gap: 8px; }
.ec-opt { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--rp-border); border-radius: var(--rp-radius-sm); background: var(--rp-bg-card); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.ec-opt:hover { border-color: var(--rp-primary-mid); }
.ec-opt.is-sel { border-color: var(--rp-primary); background: var(--rp-primary-l); }
.ec-opt small { display: block; color: var(--rp-muted); }
.ec-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; max-height: 190px; overflow: auto; }
.ec-times button { padding: 8px 4px; border: 1.5px solid var(--rp-border); background: var(--rp-bg-card); border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.ec-times button.is-sel { border-color: var(--rp-primary); background: var(--rp-primary); color: #fff; }
.ec-quote { background: var(--rp-bg); border-radius: var(--rp-radius-sm); padding: 12px 14px; margin: 12px 0; font-size: 13.5px; }
.ec-quote .ln { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.ec-quote .ln.sub { color: var(--rp-muted); font-size: 12.5px; padding-left: 10px; }
.ec-quote .ln.neg span:last-child { color: var(--rp-success); }
.ec-quote .ln.tot { border-top: 1px solid var(--rp-border); margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 16px; }
.ec-sched { margin-top: 8px; border-top: 1px dashed var(--rp-border); padding-top: 8px; }
.ec-loading { opacity: .55; pointer-events: none; }
.ec-note { font-size: 12.5px; color: var(--rp-muted); margin: 8px 0 0; }
.ec-review-sheet .ln { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--rp-border); font-size: 14px; }
.ec-gws { display: grid; gap: 8px; margin: 10px 0; }
.ec-gws label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--rp-border); border-radius: var(--rp-radius-sm); cursor: pointer; font-weight: 400; }
.ec-gws label.is-sel { border-color: var(--rp-primary); background: var(--rp-primary-l); }

/* ── provider / admin ─────────────────────────────── */
.ec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ec-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--rp-muted); padding: 10px 12px; border-bottom: 1px solid var(--rp-border); white-space: nowrap; }
.ec-table td { padding: 11px 12px; border-bottom: 1px solid var(--rp-border); vertical-align: middle; }
.ec-table tr:last-child td { border-bottom: 0; }
.ec-scroll { overflow-x: auto; }
.ec-thumb { width: 54px; height: 40px; border-radius: 8px; background: var(--rp-bg) center / cover no-repeat; flex-shrink: 0; }
.ec-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rp-border); margin: 0 0 16px; overflow-x: auto; }
.ec-tabs button { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 600; color: var(--rp-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.ec-tabs button.is-on { color: var(--rp-primary); border-bottom-color: var(--rp-primary); }
.ec-pane { display: none; }
.ec-pane.is-on { display: block; }
.ec-form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ec-form3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.ec-form2 .full, .ec-form3 .full { grid-column: 1 / -1; }
.ec-form3 .ec-span2 { grid-column: span 2; }
.ec-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ec-field input[type=text], .ec-field input[type=number], .ec-field input[type=time], .ec-field input[type=date], .ec-field input[type=url], .ec-field input[type=email], .ec-field select, .ec-field textarea { width: 100%; }
.ec-field small { display: block; color: var(--rp-muted); font-size: 12px; margin-top: 3px; }
.ec-days { display: grid; gap: 6px; }
.ec-day { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; align-items: center; }
.ec-day label { margin: 0; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.ec-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ec-media > div { width: 92px; height: 70px; border-radius: 8px; background: var(--rp-bg) center / cover no-repeat; position: relative; border: 2px solid transparent; }
.ec-media > div.is-cover { border-color: var(--rp-primary); }
.ec-media > div button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.ec-media > div em { position: absolute; bottom: 2px; left: 2px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; border-radius: 4px; padding: 1px 5px; font-style: normal; cursor: pointer; }
.ec-repeat { display: grid; gap: 8px; }
.ec-repeat .ec-r { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; }
.ec-repeat .ec-r.three { grid-template-columns: 2fr 1fr 1fr auto; }
.ec-repeat .ec-r.five { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; }
.ec-checks-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ec-checks-inline label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.ec-modal-lg .rp-modal-content { max-width: 880px; width: 96vw; }
.ec-modal-md .rp-modal-content { max-width: 640px; width: 96vw; }
.ec-modal .rp-modal-body { max-height: 74vh; overflow-y: auto; }
.ec-kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.ec-kv dt { color: var(--rp-muted); } .ec-kv dd { margin: 0; }
.ec-money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.ec-money-grid > div { padding: 10px 12px; background: var(--rp-bg); border-radius: var(--rp-radius-sm); }
.ec-money-grid b { display: block; font-size: 16px; }
.ec-bd .ln { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rp-border); font-size: 14px; }
.ec-bd .ln.tot { font-weight: 800; border-bottom: 0; }
.ec-bd .ln.sub { color: var(--rp-muted); padding-left: 12px; font-size: 13px; }
.ec-timeline { list-style: none; margin: 0; padding: 0; }
.ec-timeline li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rp-border); font-size: 13.5px; }
.ec-empty { padding: 40px 20px; text-align: center; color: var(--rp-muted); }
.ec-hero { padding: 28px 24px; border-radius: var(--rp-radius); background: linear-gradient(135deg, var(--rp-sidebar-bg), var(--rp-primary)); color: #fff; margin-bottom: 20px; }
.ec-hero h2 { margin: 0 0 6px; color: #fff; font-size: 24px; }
.ec-hero p { margin: 0 0 14px; opacity: .88; }
.ec-hero .ec-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ec-hero input, .ec-hero select { width: 100%; }

@media (max-width: 1000px) {
  .ec-search { grid-template-columns: 1fr; }
  .ec-filters { position: static; }
  .ec-detail { grid-template-columns: 1fr; }
  .ec-book { position: static; }
}
@media (max-width: 640px) {
        .ec-form2, .ec-form3 { grid-template-columns: 1fr; }
  .ec-form3 .ec-span2 { grid-column: 1 / -1; }
  .ec-repeat .ec-r, .ec-repeat .ec-r.three, .ec-repeat .ec-r.five { grid-template-columns: 1fr 1fr; }
  .ec-day { grid-template-columns: 70px 1fr 1fr; }
  .ec-kv { grid-template-columns: 1fr; }
  .ec-hide-sm { display: none; }
}

/* ── venue search: form controls (1.21.2) ───────────────────────────────────────────────────────────────────────────────
   Dropdowns, text/number/date fields and checkboxes share one look (same as the platform's other search forms) instead of
   the browser / theme default. Custom chevron so every browser draws the same control. */
.ec-wrap .ec-filters select, .ec-wrap .ec-hero select, .ec-wrap .ec-sort select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; height: 42px; padding: 0 38px 0 13px; margin: 0;
  border: 1.5px solid var(--rp-border, #DCE3EF); border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7794' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 14px;
  color: var(--rp-text, #0F1A3A); font: inherit; font-size: 13.5px; line-height: 1.3; cursor: pointer; text-overflow: ellipsis;
  box-shadow: none; outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ec-wrap .ec-filters select:hover, .ec-wrap .ec-hero select:hover, .ec-wrap .ec-sort select:hover { border-color: #B9C4DA; }
.ec-wrap .ec-filters select:focus, .ec-wrap .ec-hero select:focus, .ec-wrap .ec-sort select:focus { border-color: var(--rp-primary, #2563EB); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.ec-wrap .ec-filters select:disabled, .ec-wrap .ec-hero select:disabled, .ec-wrap .ec-sort select:disabled { background-color: var(--rp-bg, #F4F6FB); color: var(--rp-muted, #6B7794); cursor: not-allowed; }
.ec-wrap .ec-filters select option, .ec-wrap .ec-hero select option, .ec-wrap .ec-sort select option { color: #0F1A3A; background: #fff; }
.ec-wrap .ec-sort select { height: 38px; width: auto; min-width: 190px; font-size: 13px; }
[dir=rtl] .ec-wrap .ec-filters select, [dir=rtl] .ec-wrap .ec-hero select, [dir=rtl] .ec-wrap .ec-sort select { padding: 0 13px 0 38px; background-position: left 13px center; }

.ec-wrap .ec-filters input[type=text], .ec-wrap .ec-filters input[type=number], .ec-wrap .ec-filters input[type=date], .ec-wrap .ec-hero input[type=text], .ec-wrap .ec-hero input[type=number], .ec-wrap .ec-hero input[type=date] {
  width: 100%; height: 42px; padding: 0 13px; margin: 0; box-sizing: border-box;
  border: 1.5px solid var(--rp-border, #DCE3EF); border-radius: 10px; background: #fff;
  color: var(--rp-text, #0F1A3A); font: inherit; font-size: 13.5px; box-shadow: none; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ec-wrap .ec-filters input:hover, .ec-wrap .ec-hero input:hover { border-color: #B9C4DA; }
.ec-wrap .ec-filters input[type=text]:focus, .ec-wrap .ec-filters input[type=number]:focus, .ec-wrap .ec-filters input[type=date]:focus, .ec-wrap .ec-hero input[type=text]:focus, .ec-wrap .ec-hero input[type=number]:focus, .ec-wrap .ec-hero input[type=date]:focus { border-color: var(--rp-primary, #2563EB); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.ec-wrap .ec-filters input::placeholder, .ec-wrap .ec-hero input::placeholder { color: #8A94AD; opacity: 1; }
.ec-wrap .ec-filters .ec-row input { min-width: 0; }
.ec-wrap .ec-filters input[type=checkbox] { accent-color: var(--rp-primary, #2563EB); width: 16px; height: 16px; margin: 0; flex: none; }
.ec-wrap .ec-filters select, .ec-wrap .ec-filters input { max-width: 100%; box-sizing: border-box; }
.ec-wrap .ec-hero input:focus, .ec-wrap .ec-hero select:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.28); border-color: #fff; }
.ec-wrap .ec-hero .ec-quick .rp-btn { height: 42px; padding-top: 0; padding-bottom: 0; }
.ec-wrap .ec-resultbar { margin-bottom: 14px; }
.ec-wrap .ec-resultbar > strong { font-size: 14px; }

/* ── venue search: live results (AJAX refresh) ── */
.ec-wrap .ec-results { position: relative; min-height: 140px; transition: opacity .15s; }
.ec-wrap .ec-results.is-loading { opacity: .5; pointer-events: none; }
.ec-wrap .ec-results.is-loading:after { content: ""; position: absolute; top: 46px; left: calc(50% - 15px); width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--rp-border, #DCE3EF); border-top-color: var(--rp-primary, #2563EB); animation: ecSpin .7s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }
.ec-wrap .ec-filters [type=submit][disabled], .ec-wrap .ec-quick [type=submit][disabled] { opacity: .65; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .ec-wrap .ec-results, .ec-wrap .ec-results.is-loading:after { transition: none; animation-duration: 2s; } }

@media (max-width: 768px) {
  .ec-wrap .ec-filters select, .ec-wrap .ec-hero select, .ec-wrap .ec-sort select, .ec-wrap .ec-filters input[type=text], .ec-wrap .ec-filters input[type=number], .ec-wrap .ec-filters input[type=date], .ec-wrap .ec-hero input[type=text], .ec-wrap .ec-hero input[type=number], .ec-wrap .ec-hero input[type=date] { height: 44px; font-size: 16px; }   /* 16px: iOS does not zoom the page on focus */
  .ec-wrap .ec-sort { width: 100%; }
  .ec-wrap .ec-sort select { flex: 1; min-width: 0; width: 100%; }
  .ec-wrap .ec-resultbar { gap: 8px; }
}

/* ═══ Provider forms — same look as the Property Upload form (steps, media section, upload zone, video source) ═══ */
.ec-modal .rp-media-section { background: var(--rp-bg); border-radius: 10px; padding: 16px; }
.ec-modal .rp-media-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--rp-text); }
.ec-hint { font-size: 13px; color: var(--rp-muted); margin: 0 0 12px; }
.ec-modal .rp-upload-zone { border: 2.5px dashed var(--rp-border); border-radius: 10px; padding: 28px 20px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--rp-muted); font-weight: 600; font-size: 13.5px; transition: border-color .2s, background .2s; }
.ec-modal .rp-upload-zone:hover, .ec-modal .rp-upload-zone:focus-visible, .ec-modal .rp-upload-zone.drag-over { border-color: var(--rp-primary); background: var(--rp-primary-l, #eff6ff); color: var(--rp-primary); outline: 0; }
.ec-modal .rp-upload-zone svg { opacity: .5; } .ec-modal .rp-upload-zone:hover svg, .ec-modal .rp-upload-zone.drag-over svg { opacity: 1; }
.ec-modal .rp-upload-zone small { font-size: 12px; font-weight: 400; }
.ec-modal .rp-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ec-modal .rp-photo-grid:empty { display: none; }
.ec-modal .rp-photo-thumb-wrap { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--rp-border); cursor: grab; transition: transform .15s, opacity .15s; }
.ec-modal .rp-photo-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ec-modal .rp-photo-thumb-wrap.is-featured { width: 96px; height: 96px; border-color: var(--rp-primary); border-width: 2.5px; }
.ec-modal .rp-photo-thumb-wrap.is-featured::after { content: 'Featured'; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(26,63,212,.8); color: #fff; font-size: 9px; font-weight: 700; text-align: center; padding: 2px; text-transform: uppercase; letter-spacing: .3px; }
.ec-modal .rp-photo-del-btn { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 4px; background: rgba(220,38,38,.85); border: 0; cursor: pointer; color: #fff; line-height: 1; padding: 0; font-size: 14px; }
.ec-modal .rp-photo-thumb-wrap .ec-m-cover { position: absolute; bottom: 3px; left: 3px; width: 20px; height: 20px; border-radius: 4px; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; padding: 0; }
.ec-modal .rp-dragging { opacity: .45; transform: scale(.95); }
.ec-modal .rp-drag-over { outline: 2.5px dashed var(--rp-primary); outline-offset: 2px; }
.ec-modal .rp-progress-bar { height: 6px; background: var(--rp-border); border-radius: 999px; overflow: hidden; }
.ec-modal .rp-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--rp-primary), var(--rp-primary-mid, #4f8bff)); border-radius: 999px; transition: width .3s; }
.ec-vsrc { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ec-modal .rp-video-src-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--rp-border); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--rp-muted); background: #fff; transition: all .15s; font-family: inherit; }
.ec-modal .rp-video-src-btn:hover { border-color: var(--rp-primary); color: var(--rp-primary); }
.ec-modal .rp-video-src-btn.active { background: var(--rp-primary); border-color: var(--rp-primary); color: #fff; }
.ec-vprev { margin-top: 10px; aspect-ratio: 16/9; max-height: 260px; border-radius: 10px; overflow: hidden; border: 1px solid var(--rp-border); background: #000; }
.ec-vprev iframe, .ec-vprev video { width: 100%; height: 100%; border: 0; display: block; }

/* stepper on the existing tab strip (mirrors the property form: numbered steps, progress bar, Back / Next) */
.ec-tabs.rpf-stepper { gap: 4px; padding: 10px 16px 0; margin: -16px -20px 0; background: #fff; border-bottom: 2px solid var(--rp-border); position: sticky; top: -16px; z-index: 2; scrollbar-width: none; }
.ec-tabs.rpf-stepper::-webkit-scrollbar { display: none; }
.ec-tabs.rpf-stepper button { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; font-size: 13px; border-radius: 8px 8px 0 0; margin-bottom: -2px; border-bottom: 2.5px solid transparent; }
.ec-tabs.rpf-stepper button.is-on { color: var(--rp-primary); border-bottom-color: var(--rp-primary); }
.ec-modal .rpf-progress { margin: 0 -20px 16px; }
.ec-modal .rpf-review dl { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.ec-modal .rpf-review dt { color: var(--rp-muted); font-weight: 600; } .ec-modal .rpf-review dd { margin: 0; word-break: break-word; }
.ec-modal .rpf-review .ec-rv-miss { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.ec-modal .rpf-review .ec-rv-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.ec-modal .rpf-review .ec-rv-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ec-modal .rpf-review .ec-rv-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rp-border); }
.ec-field.has-err input, .ec-field.has-err select, .ec-field.has-err textarea { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
@media (max-width: 640px) {
  .ec-tabs.rpf-stepper { padding: 8px 8px 0; margin: -16px -14px 0; } .ec-tabs.rpf-stepper button { padding: 9px 10px; font-size: 12px; }
  .ec-modal .rpf-progress { margin: 0 -14px 14px; }
  .ec-modal .rp-modal-footer { flex-wrap: wrap; } .ec-modal .rp-modal-footer .rpf-actions { width: 100%; margin-left: 0; order: -1; } .ec-modal .rp-modal-footer .rpf-actions .rp-btn { flex: 1 1 0; justify-content: center; }
}
.ecs-off { display: none !important; }

/* multi-day: range on the calendar, stay selector, period line */
.ec-cal button.is-range { background: var(--rp-primary-l, #dbeafe); color: var(--rp-primary); border-color: var(--rp-primary-l, #dbeafe); font-weight: 700; text-decoration: none; border-radius: 0; }
.ec-cal button.is-end { background: var(--rp-primary); color: #fff; border-color: var(--rp-primary); text-decoration: none; }
.ec-stay { margin-top: 14px; padding: 12px; border: 1px dashed var(--rp-border); border-radius: 10px; background: var(--rp-bg); }
.ec-stay .ec-field { margin: 0; }
.ec-period { background: var(--rp-primary-l, #eff6ff); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13.5px; }
.ec-login .ec-form2 { grid-template-columns: 1fr; }

/* ═══ Compact venue filters (1.21.3) ═══
   ≥1001px: the sidebar as before. ≤1000px (tablet + phone): the panel folds behind one "Filters" bar, opens as a tight grid
   (3 columns tablet / 2 phone) with chip-style checkbox lists, and the hero search shrinks. Without JS the panel simply stays open. */
.ec-ftoggle { display: none; }
@media (max-width: 1000px) {
  .ec-wrap.ec-js .ec-ftoggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--rp-border); border-radius: 10px; background: #fff; color: var(--rp-text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
  .ec-ftoggle:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 1px; }
  .ec-ftoggle.has-active { border-color: var(--rp-primary); color: var(--rp-primary); }
  .ec-ftoggle .ec-fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rp-primary); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; font-weight: 700; }
  .ec-ftoggle .ec-fcount[hidden] { display: none; }
  .ec-ftoggle .ec-fchev { margin-left: auto; flex: none; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
  .ec-ftoggle[aria-expanded=true] .ec-fchev { transform: rotate(225deg) translate(-2px, -2px); }
  .ec-wrap.ec-js .ec-filters { display: none; }
  .ec-wrap.ec-js .ec-filters.is-open { display: block; }
  .ec-search { gap: 10px; }
  .ec-filters { padding: 12px; }
  .ec-filters form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
  .ec-filters .ec-ff { min-width: 0; }
  .ec-filters .ec-ff > label:first-child { margin: 0 0 3px; font-size: 11px; }
  .ec-filters .ec-ff-full, .ec-filters .ec-factions { grid-column: 1 / -1; }
  .ec-filters .ec-factions { margin-top: 4px !important; }
  .ec-wrap .ec-filters select, .ec-wrap .ec-filters input[type=text], .ec-wrap .ec-filters input[type=number], .ec-wrap .ec-filters input[type=date] { height: 38px; }
  .ec-filters .ec-checks { display: flex; flex-wrap: wrap; gap: 6px; max-height: none; overflow: visible; }
  .ec-filters .ec-checks label { padding: 5px 10px; border: 1px solid var(--rp-border); border-radius: 999px; font-size: 12.5px; background: #fff; cursor: pointer; }
  .ec-filters .ec-checks label:has(input:checked) { border-color: var(--rp-primary); background: var(--rp-primary-l, #eff6ff); color: var(--rp-primary); }
  .ec-hero { padding: 18px 16px; margin-bottom: 12px; }
  .ec-hero h2 { font-size: 20px; }
  .ec-hero p { display: none; }
  .ec-hero .ec-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ec-hero .ec-quick > input[name=ec_q] { grid-column: 1 / -1; }
  .ec-hero .ec-quick > button { height: 40px; }
  .ec-wrap .ec-hero input[type=text], .ec-wrap .ec-hero input[type=number], .ec-wrap .ec-hero input[type=date] { height: 40px; }
}
@media (max-width: 640px) {
  .ec-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-resultbar { flex-direction: column; align-items: stretch; }
}
