.esb-app {
	direction: rtl; max-width: 920px; margin: 24px auto; padding: 20px;
	background: #0b1140; border-radius: 14px; color: #fff; font-family: inherit; box-sizing: border-box; line-height: 1.6;
}
.esb-app *, .esb-app *::before, .esb-app *::after { box-sizing: border-box; }
.esb-app button { font-family: inherit; }
.esb-note { text-align: center; opacity: .8; }

.esb-meta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; font-size: 15px; opacity: .95; }
.esb-alert { background: rgba(239, 68, 68, .18); border: 1px solid rgba(239, 68, 68, .6); padding: 10px 14px; border-radius: 8px; text-align: center; margin-bottom: 12px; }

.esb-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.esb-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.esb-dot { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.esb-dot-free { background: linear-gradient(90deg, #FFD60A, #22C55E, #2F6FF0); }
.esb-dot-selected { background: #22C55E; outline: 3px solid #fff; outline-offset: 1px; }
.esb-dot-pending { background: #6b7280; outline: 2px dashed #fff; outline-offset: -2px; }
.esb-dot-confirmed { background: #4b5563; opacity: .7; }

/* floor plan */
.esb-plan { position: relative; direction: ltr; line-height: 0; margin-bottom: 18px; border-radius: 10px; overflow: hidden; background: #fff; }
.esb-plan img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; }
.esb-pspot {
	position: absolute; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0;
	border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); border-radius: 4px; cursor: pointer;
	font: 700 clamp(8px, 1.6vw, 14px)/1.1 Arial, sans-serif; overflow: hidden; text-align: center; transition: transform .12s, filter .12s;
}
.esb-pspot:hover { filter: brightness(1.12); transform: scale(1.04); z-index: 2; }
.esb-pspot.is-selected { outline: 3px solid #fff; box-shadow: 0 0 12px 3px rgba(255, 255, 255, .9); z-index: 3; }
.esb-pspot.is-confirmed, .esb-pspot.is-pending {
	background: #4b5563 !important; color: rgba(255, 255, 255, .7) !important; cursor: not-allowed;
	background-image: linear-gradient(to top right, transparent 47%, rgba(255, 255, 255, .8) 49%, rgba(255, 255, 255, .8) 51%, transparent 53%),
		linear-gradient(to top left, transparent 47%, rgba(255, 255, 255, .8) 49%, rgba(255, 255, 255, .8) 51%, transparent 53%) !important;
}
.esb-pspot.is-pending { border-style: dashed; background-color: #6b7280 !important; }

/* cards */
.esb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.esb-card {
	position: relative; display: flex; flex-direction: column; text-align: right; padding: 0; overflow: hidden; cursor: pointer;
	background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-top: 4px solid var(--c, #22C55E);
	border-radius: 10px; transition: transform .12s, background .12s;
}
.esb-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.esb-card-img { width: 100%; height: 110px; object-fit: cover; display: block; }
.esb-card-ph { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.esb-card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: 14px; }
.esb-card-body strong { font-size: 16px; }
.esb-price { color: #86efac; font-weight: 600; }
.esb-area { opacity: .85; font-size: 13px; }
.esb-badge { align-self: flex-start; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-top: 4px; }
.esb-card.is-selected { outline: 3px solid #22C55E; background: rgba(34, 197, 94, .18); }
.esb-card.is-selected .esb-badge { background: #22C55E; color: #04210f; font-weight: 700; }
.esb-card.is-confirmed, .esb-card.is-pending { opacity: .5; }
.esb-card.is-pending { border-top-style: dashed; }

/* form */
.esb-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; gap: 10px; }
.esb-h { margin: 0; color: #fff; font-size: 20px; }
.esb-summary { background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 8px 12px; }
.esb-sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 15px; }
.esb-sum-total { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 4px; padding-top: 8px; font-size: 17px; }
.esb-field { display: grid; gap: 5px; margin: 0; }
.esb-lbl { font-size: 15px; font-weight: 600; color: #fff; }
.esb-req { color: #fca5a5; font-style: normal; }
.esb-hint { opacity: .7; font-size: 12.5px; }
.esb-app .esb-input, .esb-app input.esb-input, .esb-app textarea.esb-input {
	display: block; width: 100%; height: auto; min-height: 46px; padding: 11px 14px; margin: 0; border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .3) !important; background: rgba(255, 255, 255, .1) !important; background-image: none !important;
	color: #fff !important; -webkit-text-fill-color: #fff; caret-color: #fff; font-size: 16px; line-height: 1.5; font-family: inherit; box-shadow: none;
}
.esb-app .esb-input::placeholder { color: rgba(255, 255, 255, .45) !important; -webkit-text-fill-color: rgba(255, 255, 255, .45); opacity: 1; }
.esb-app .esb-input:focus { outline: 2px solid #2F6FF0; border-color: transparent !important; }
.esb-app .esb-input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #1d2570 inset; }
.esb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.esb-terms {
	max-height: 150px; overflow: auto; white-space: pre-line; padding: 12px; font-size: 14px;
	background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
}
.esb-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.esb-check input { width: 20px; height: 20px; accent-color: #22C55E; margin: 0; }

.esb-btn {
	padding: 13px; border: 0; border-radius: 8px; background: #22C55E; color: #04210f;
	font-size: 17px; font-weight: 700; cursor: pointer; transition: opacity .15s; width: 100%;
}
.esb-btn:disabled { opacity: .4; cursor: not-allowed; }
.esb-msg { min-height: 22px; text-align: center; font-size: 15px; }
.esb-msg-ok { color: #86efac; }
.esb-msg-err { color: #fca5a5; }
.esb-hold { opacity: .75; text-align: center; }

/* modal */
.esb-modal {
	position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 14px;
}
.esb-dlg {
	position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #131b5c; color: #fff;
	border-radius: 14px; padding: 16px; display: grid; gap: 10px;
}
.esb-x {
	position: absolute; top: 8px; left: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0;
	background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.esb-main-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; display: block; }
.esb-strip { display: flex; gap: 6px; overflow-x: auto; }
.esb-strip img { width: 64px; height: 50px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; flex: none; }
.esb-strip img.is-on { opacity: 1; outline: 2px solid #fff; }
.esb-dlg-head { display: flex; align-items: center; gap: 10px; }
.esb-dlg-head h3 { margin: 0; color: #fff; font-size: 22px; }
.esb-chip { width: 18px; height: 18px; border-radius: 4px; display: inline-block; flex: none; }
.esb-facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 16px; }
.esb-desc { margin: 0; white-space: pre-line; opacity: .92; }

/* ===== shared tokens ===== */
.esb-single, .esb-cards, .esb-hub { --esb-bg: #0b1140; --esb-card: #131b5c; --esb-line: rgba(255, 255, 255, .14); --esb-accent: #22C55E; --esb-ink: #04210f; font-family: inherit; direction: rtl; line-height: 1.6; }
.esb-single *, .esb-cards *, .esb-hub * { box-sizing: border-box; }
.esb-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.esb-pill-open { background: var(--esb-accent); color: var(--esb-ink); }
.esb-pill-closed { background: #f59e0b; color: #2b1a00; }
.esb-pill-past { background: #6b7280; color: #fff; }

/* ===== events grid: [esb_events] ===== */
.esb-cards { display: grid; grid-template-columns: repeat(var(--esb-cols, auto-fill), minmax(270px, 1fr)); gap: 22px; margin: 20px 0; }
.esb-cards[style*="--esb-cols"] { grid-template-columns: repeat(var(--esb-cols), 1fr); }
.esb-ecard { display: flex; flex-direction: column; text-decoration: none !important; color: #fff !important; background: var(--esb-bg); border: 1px solid var(--esb-line); border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.esb-ecard:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(11, 17, 64, .35); }
.esb-ecard.is-past { opacity: .72; }
.esb-ecard-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1d2a9a, #0b1140); overflow: hidden; }
.esb-ecard-media img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block !important; opacity: 1 !important; visibility: visible !important; margin: 0 !important; transition: transform .35s; }
.esb-ecard:hover .esb-ecard-media img { transform: scale(1.06); }
.esb-ecard-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 800; opacity: .35; }
.esb-ecard-media .esb-pill { position: absolute; top: 12px; left: 12px; }
.esb-ecard-date { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 10px; border-radius: 12px; background: #fff; color: #0b1140; line-height: 1.1; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.esb-ecard-date b { font-size: 22px; }
.esb-ecard-date small { font-size: 12px; font-weight: 600; }
.esb-ecard-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.esb-ecard-body h3 { margin: 0 0 4px; color: #fff; font-size: 20px; line-height: 1.35; }
.esb-ecard-body p { margin: 0; font-size: 14px; opacity: .85; }
.esb-ecard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.esb-ecard-price { font-weight: 700; color: #86efac; font-size: 15px; }
.esb-ecard-btn { padding: 9px 16px; border-radius: 10px; background: var(--esb-accent); color: var(--esb-ink); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ===== single event page ===== */
body.single-esb_event .entry-header, body.single-esb_event .post-thumbnail, body.single-esb_event .wp-block-post-title,
body.single-esb_event .wp-block-post-featured-image, body.single-esb_event .entry-meta, body.single-esb_event .page-header,
body.single-esb_event .post-navigation { display: none !important; }
body.single-esb_event { overflow-x: hidden; }
.esb-single { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); padding: 24px 16px 40px; }
.esb-single-in { max-width: 1180px; margin: 0 auto; }
.esb-single h1, .esb-single h2 { color: inherit; }

.esb-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.esb-hero-nogal { grid-template-columns: 1fr; }

.esb-gallery { min-width: 0; }
.esb-g-main { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--esb-bg); box-shadow: 0 10px 30px rgba(11, 17, 64, .25); }
.esb-g-img { max-width: none !important; opacity: 1 !important; width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.esb-g-nav, .esb-g-zoom, .esb-lb-nav, .esb-lb-x { border: 0; cursor: pointer; font-family: inherit; }
.esb-g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(11, 17, 64, .65); color: #fff; font-size: 28px; line-height: 1; padding: 0 0 4px; }
.esb-g-nav:hover { background: rgba(11, 17, 64, .9); }
.esb-g-prev { right: 12px; }
.esb-g-next { left: 12px; }
.esb-g-count { direction: ltr; unicode-bidi: isolate; position: absolute; bottom: 12px; right: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(11, 17, 64, .7); color: #fff; font-size: 13px; }
.esb-g-zoom { position: absolute; bottom: 10px; left: 10px; width: 36px; height: 36px; border-radius: 10px; background: rgba(11, 17, 64, .7); color: #fff; font-size: 18px; }
.esb-g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scroll-behavior: smooth; }
.esb-g-t { flex: none; width: 92px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .15s; }
.esb-g-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.esb-g-t:hover { opacity: .9; }
.esb-g-t.is-on { opacity: 1; border-color: var(--esb-accent); }

.esb-info { background: var(--esb-bg); color: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(11, 17, 64, .25); }
.esb-info .esb-pill { align-self: flex-start; }
.esb-title { margin: 0; color: #fff; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.3; }
.esb-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.esb-facts li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.esb-facts i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 20px; }
.esb-facts small { display: block; opacity: .65; font-size: 12.5px; line-height: 1.3; }
.esb-facts b { display: block; font-size: 16px; }
.esb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.esb-stats > div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 14px; }
.esb-stats small { display: block; opacity: .65; font-size: 12.5px; }
.esb-stats b { display: block; font-size: 18px; color: #86efac; direction: ltr; unicode-bidi: isolate; text-align: right; }
.esb-cta { display: block; text-align: center; padding: 15px; border-radius: 12px; background: var(--esb-accent); color: var(--esb-ink) !important; font-weight: 800; font-size: 18px; text-decoration: none !important; transition: filter .15s; }
.esb-cta:hover { filter: brightness(1.08); }

.esb-about, .esb-booking { margin-top: 34px; }
.esb-about h2, .esb-booking h2 { margin: 0 0 14px; font-size: 26px; }
.esb-about-body { font-size: 17px; line-height: 1.9; }
.esb-booking { scroll-margin-top: 80px; }
.esb-single .esb-app { max-width: none; margin: 0; padding: 22px; }
.esb-single .esb-app > .esb-meta { display: none; }

/* ===== events hub (in-place details) ===== */
.esb-hub { direction: rtl; }
.esb-hub [hidden] { display: none !important; }
.esb-hub-bar { margin: 0 0 16px; }
.esb-back { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--esb-line, rgba(0,0,0,.2)); background: var(--esb-bg); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: filter .15s; }
.esb-back:hover { filter: brightness(1.2); }
.esb-loading { text-align: center; padding: 70px 10px; opacity: .7; font-size: 17px; }
.esb-hub .esb-single { width: auto; max-width: 100%; margin-inline: 0; padding: 0; }
.esb-hub .esb-single-in { max-width: none; }
.esb-ecard { cursor: pointer; }
.esb-ecard-body .esb-ecard-ex { opacity: .75; font-size: 14px; margin-bottom: 6px; }

/* lightbox */
.esb-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.esb-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.esb-lb-x { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; }
.esb-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 34px; line-height: 1; padding: 0 0 5px; }
.esb-lb-prev { right: 16px; }
.esb-lb-next { left: 16px; }

@media (max-width: 860px) {
	.esb-hero { grid-template-columns: 1fr; gap: 18px; }
	.esb-single { padding: 14px 12px 30px; }
	.esb-single .esb-app { padding: 14px; }
	.esb-g-t { width: 74px; height: 56px; }
	.esb-about h2, .esb-booking h2 { font-size: 22px; }
}

@media (max-width: 480px) {
	.esb-app { padding: 14px; border-radius: 10px; }
	.esb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.esb-card-img { height: 90px; }
}
