/*
 * Mizrahnik Jungle Boss Calendar
 * Scoped under .mz-jb-calendar-wrap and .mz-jb-modal to prevent CSS leaks.
 * Dark mode via html[data-theme="dark"] (mizrahnik standard).
 * RTL first, mobile first, responsive.
 */

.mz-jb-calendar-wrap {
    --mz-jb-bg:        var(--mz-bg, #ffffff);
    --mz-jb-surface:   var(--mz-surface, #f6f7f9);
    --mz-jb-surface-2: var(--mz-surface-2, #ffffff);
    --mz-jb-text:      var(--mz-text, #111827);
    --mz-jb-muted:     var(--mz-muted, #6b7280);
    --mz-jb-border:    var(--mz-border, rgba(17, 24, 39, 0.15));
    --mz-jb-link:      var(--mz-link, #3364ad);
    --mz-jb-focus:     var(--mz-focus, rgba(51, 100, 173, 0.45));
    --mz-jb-primary:   #5FA886;
    --mz-jb-secondary: #FFEEAD;
    --mz-jb-radius:    14px;
    --mz-jb-radius-sm: 10px;
    --mz-jb-shadow:    0 4px 20px rgba(17, 24, 39, 0.08);
    --mz-jb-shadow-lg: 0 20px 60px rgba(17, 24, 39, 0.18);
    font-family: 'Fredoka', 'Assistant', system-ui, sans-serif;
    color: var(--mz-jb-text);
    direction: rtl;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
}

html[data-theme="dark"] .mz-jb-calendar-wrap,
body[data-theme="dark"] .mz-jb-calendar-wrap {
    --mz-jb-shadow:    0 4px 20px rgba(0, 0, 0, 0.35);
    --mz-jb-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============ DISCOUNT BANNER ============ */
.mz-jb-discount-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #eef7f1;
    border: 1px solid rgba(95, 168, 134, 0.25);
    border-inline-start: 5px solid var(--mz-jb-primary);
    border-radius: var(--mz-jb-radius);
    color: #1f5f3d;
    font-size: 15px;
    line-height: 1.55;
}

html[data-theme="dark"] .mz-jb-discount-banner,
body[data-theme="dark"] .mz-jb-discount-banner {
    background: rgba(95, 168, 134, 0.18);
    color: #d1fae5;
}

.mz-jb-discount-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.mz-jb-discount-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mz-jb-coupon-code {
    display: inline-block;
    position: relative;
    padding: 2px 10px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
    unicode-bidi: isolate;
    color: inherit;
    cursor: pointer;
    user-select: all;
    transition: background 0.15s;
}
.mz-jb-coupon-code:hover {
    background: rgba(0, 0, 0, 0.2);
}
.mz-jb-coupon-code.is-copied::after {
    content: 'הועתק! ✓';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    animation: mz-jb-fade-in 0.15s ease;
}
@keyframes mz-jb-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

html[data-theme="dark"] .mz-jb-coupon-code {
    background: rgba(255, 255, 255, 0.18);
}

.mz-jb-discount-link {
    display: inline-block;
    margin-inline-start: 8px;
    padding: 4px 12px;
    background: var(--mz-jb-primary);
    color: #ffffff !important;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.mz-jb-discount-link:hover {
    background: #3d8363;
    color: #ffffff !important;
}

/* Modal-scoped discount note (near form) */
.mz-jb-modal .mz-jb-discount-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 14px 16px;
    background: #eef7f1;
    color: #1f5f3d;
    border-inline-start: 4px solid var(--mz-jb-primary);
    border-radius: var(--mz-jb-radius);
    font-size: 14px;
    line-height: 1.55;
}

.mz-jb-modal .mz-jb-discount-note-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mz-jb-modal .mz-jb-discount-note code {
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    font-weight: 700;
    unicode-bidi: isolate;
}

.mz-jb-modal .mz-jb-discount-note a {
    color: var(--mz-jb-primary);
    font-weight: 600;
    text-decoration: underline;
}

html[data-theme="dark"] .mz-jb-modal .mz-jb-discount-note {
    background: rgba(95, 168, 134, 0.18);
    color: #d1fae5;
}

html[data-theme="dark"] .mz-jb-modal .mz-jb-discount-note code {
    background: rgba(255, 255, 255, 0.18);
}

/* ============ FILTERS ============ */
.mz-jb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
}

.mz-jb-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mz-jb-filter-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mz-jb-primary) !important;
    white-space: nowrap;
    margin-inline-end: 2px;
}

.mz-jb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mz-jb-filter-pill {
    padding: 5px 14px;
    border: 1.5px solid rgba(95, 168, 134, 0.45);
    border-radius: 50px;
    background: transparent;
    color: var(--mz-jb-primary) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.mz-jb-filter-pill:hover {
    border-color: var(--mz-jb-primary);
    background: rgba(95, 168, 134, 0.1);
}

.mz-jb-filter-pill.is-active {
    background: var(--mz-jb-primary);
    border-color: var(--mz-jb-primary);
    color: #ffffff !important;
    font-weight: 600;
}

.mz-jb-filter-pill.is-active:hover {
    background: #3d8363;
    border-color: #3d8363;
}

html[data-theme="dark"] .mz-jb-filter-pill,
body[data-theme="dark"] .mz-jb-filter-pill {
    border-color: rgba(95, 168, 134, 0.35);
}

html[data-theme="dark"] .mz-jb-filter-pill:hover,
body[data-theme="dark"] .mz-jb-filter-pill:hover {
    background: rgba(95, 168, 134, 0.15);
}

/* ---- Sort bar ---- */
.mz-jb-sort-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.mz-jb-sort-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mz-jb-primary) !important;
    white-space: nowrap;
}

.mz-jb-sort-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mz-jb-sort-btn {
    padding: 4px 13px;
    border: 1.5px solid rgba(95, 168, 134, 0.45);
    border-radius: 50px;
    background: transparent;
    color: var(--mz-jb-primary) !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.mz-jb-sort-btn:hover {
    border-color: var(--mz-jb-primary);
    background: rgba(95, 168, 134, 0.1);
}

.mz-jb-sort-btn.is-active {
    background: var(--mz-jb-primary);
    border-color: var(--mz-jb-primary);
    color: #ffffff !important;
    font-weight: 600;
}

.mz-jb-sort-btn.is-active:hover {
    background: #3d8363;
    border-color: #3d8363;
}

html[data-theme="dark"] .mz-jb-sort-btn,
body[data-theme="dark"] .mz-jb-sort-btn {
    border-color: rgba(95, 168, 134, 0.35);
}

html[data-theme="dark"] .mz-jb-sort-btn:hover,
body[data-theme="dark"] .mz-jb-sort-btn:hover {
    background: rgba(95, 168, 134, 0.15);
}

.mz-jb-filter-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--mz-jb-muted);
    font-size: 15px;
    border: 1px dashed var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    margin-bottom: 20px;
}

.mz-jb-card.is-filtered-out {
    display: none;
}

/* ============ GRID ============ */
.mz-jb-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .mz-jb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .mz-jb-cols-3 .mz-jb-grid { grid-template-columns: repeat(3, 1fr); }
    .mz-jb-cols-4 .mz-jb-grid { grid-template-columns: repeat(4, 1fr); }
    .mz-jb-cols-2 .mz-jb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ CARD ============ */
.mz-jb-card {
    background: var(--mz-jb-surface-2);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mz-jb-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mz-jb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mz-jb-shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .mz-jb-card { transition: none; }
    .mz-jb-card:hover { transform: none; }
}

.mz-jb-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--mz-jb-primary), #3d8363);
    overflow: hidden;
}

.mz-jb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mz-jb-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.8);
}

.mz-jb-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--mz-jb-secondary);
    color: #2c3e2f !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mz-jb-badge[data-level="easy"]      { background: #4ade80; color: #14532d !important; }
.mz-jb-badge[data-level="medium"]    { background: #a3e635; color: #1f2937 !important; }
.mz-jb-badge[data-level="hard"]      { background: #f59e0b; color: #1f2937 !important; }
.mz-jb-badge[data-level="strenuous"] { background: #f97316; color: #ffffff !important; }
.mz-jb-badge[data-level="extreme"]   { background: #ef4444; color: #ffffff !important; }

html[data-theme="dark"] .mz-jb-badge[data-level],
body[data-theme="dark"] .mz-jb-badge[data-level] { color: #1a1a1a !important; }

.mz-jb-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mz-jb-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mz-jb-text);
}

.mz-jb-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--mz-jb-muted);
    font-size: 14px;
}

.mz-jb-meta-item {
    unicode-bidi: isolate;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5FA886;
}
.mz-jb-meta-item svg {
    flex-shrink: 0;
    vertical-align: middle;
}

.mz-jb-meta-location {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.mz-jb-meta-location svg {
    flex-shrink: 0;
    color: var(--mz-jb-primary);
    vertical-align: middle;
}

.mz-jb-card-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--mz-jb-muted);
    flex: 1;
}

/* Shared pill-button base for card CTAs, modal submit, and details CTA */
.mz-jb-card-cta,
.mz-jb-card-details,
.mz-jb-card-signup,
.mz-jb-modal-submit,
.mz-jb-details-signup-btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--mz-jb-primary), #3d8363);
    color: #ffffff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mz-jb-card-cta,
.mz-jb-modal-submit,
.mz-jb-details-signup-btn {
    width: 100%;
}

.mz-jb-details-signup-btn {
    margin-top: 24px;
    font-size: 17px;
    padding: 14px 24px;
}

/* Two-button card layout */
.mz-jb-card-actions {
    display: flex;
    gap: 8px;
}

.mz-jb-card-details,
.mz-jb-card-signup {
    flex: 1;
    font-size: 14px;
    padding: 10px 12px;
}

.mz-jb-card-details {
    background: var(--mz-jb-surface);
    color: var(--mz-jb-text) !important;
    border: 1px solid var(--mz-jb-border);
}

.mz-jb-card-details:hover {
    background: var(--mz-jb-surface-2);
    color: var(--mz-jb-text) !important;
}

.mz-jb-card-cta:hover,
.mz-jb-card-signup:hover,
.mz-jb-modal-submit:hover,
.mz-jb-details-signup-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(95, 168, 134, 0.4);
    color: #ffffff !important;
}

.mz-jb-card-cta:focus-visible,
.mz-jb-card-details:focus-visible,
.mz-jb-card-signup:focus-visible,
.mz-jb-modal-submit:focus-visible,
.mz-jb-details-signup-btn:focus-visible {
    outline: 3px solid var(--mz-jb-focus);
    outline-offset: 2px;
}

.mz-jb-card-cta::after,
.mz-jb-card-signup::after,
.mz-jb-modal-submit::after,
.mz-jb-details-signup-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.mz-jb-card-cta:hover::after,
.mz-jb-card-signup:hover::after,
.mz-jb-modal-submit:hover::after,
.mz-jb-details-signup-btn:hover::after {
    left: 100%;
}

/* ============ DISCLAIMERS (legal + affiliate) ============ */
.mz-jb-disclaimers {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--mz-jb-muted);
}

.mz-jb-disclaimers strong {
    color: var(--mz-jb-text);
}

.mz-jb-disclaimer,
.mz-jb-disclosure {
    padding-inline-start: 12px;
    border-inline-start: 3px solid var(--mz-jb-border);
}

.mz-jb-disclaimer {
    border-inline-start-color: #9ca3af;
}

.mz-jb-disclosure {
    border-inline-start-color: var(--mz-jb-primary);
    font-style: italic;
}

/* Compact version inside the modal */
.mz-jb-modal .mz-jb-disclaimers-modal {
    margin-top: 20px;
    padding: 14px 16px;
    font-size: 12px;
    background: transparent;
    border: 1px dashed var(--mz-jb-border);
}

/* ============ EMPTY STATE ============ */
.mz-jb-empty {
    padding: 40px;
    text-align: center;
    color: var(--mz-jb-muted);
}

/* ============ MODAL ============ */
.mz-jb-modal {
    --mz-jb-bg:        var(--mz-bg, #ffffff);
    --mz-jb-surface:   var(--mz-surface, #f6f7f9);
    --mz-jb-surface-2: var(--mz-surface-2, #ffffff);
    --mz-jb-text:      var(--mz-text, #111827);
    --mz-jb-muted:     var(--mz-muted, #6b7280);
    --mz-jb-border:    var(--mz-border, rgba(17, 24, 39, 0.15));
    --mz-jb-link:      var(--mz-link, #3364ad);
    --mz-jb-focus:     var(--mz-focus, rgba(51, 100, 173, 0.45));
    --mz-jb-primary:   #5FA886;
    --mz-jb-secondary: #FFEEAD;
    --mz-jb-radius:    14px;
    position: fixed;
    inset: 0;
    z-index: 99999999;
    display: none;
    font-family: 'Fredoka', 'Assistant', system-ui, sans-serif;
    color: var(--mz-jb-text);
    direction: rtl;
}

.mz-jb-modal.is-open {
    display: block;
}

.mz-jb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mz-jb-modal-dialog {
    position: relative;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    background: var(--mz-jb-surface-2);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: mz-jb-modal-in 0.3s ease-out;
}

@keyframes mz-jb-modal-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mz-jb-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    width: 36px;
    height: 36px;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.15) !important;
    color: var(--mz-jb-text) !important;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
    padding: 0;
    box-shadow: none !important;
    outline: none;
}

.mz-jb-modal-close:hover {
    background: rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .mz-jb-modal-close {
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .mz-jb-modal-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.mz-jb-modal-content {
    overflow-y: auto;
    padding: 32px 28px 28px;
}

.mz-jb-modal-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.mz-jb-modal-subtitle {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--mz-jb-muted);
}

.mz-jb-modal-facts {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 4px 16px;
    background: var(--mz-jb-surface);
    border-radius: var(--mz-jb-radius);
    border: 1px solid var(--mz-jb-border);
}

.mz-jb-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mz-jb-border);
}
.mz-jb-fact:last-child {
    border-bottom: none;
}

.mz-jb-fact-icon-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 160px;
    color: var(--mz-jb-muted);
}

.mz-jb-fact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.mz-jb-fact-label {
    font-size: 13px;
    color: var(--mz-jb-muted);
}

.mz-jb-fact-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--mz-jb-text);
    flex: 1;
}

.mz-jb-diff-bar {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
}

.mz-jb-diff-seg {
    position: relative;
    height: 8px;
    flex: 1;
    border-radius: 4px;
    opacity: 0.4;
}

.mz-jb-diff-seg.is-active {
    opacity: 1;
}

.mz-jb-fact--difficulty {
    padding-top: 28px;
}

.mz-jb-diff-check {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--mz-jb-text);
    line-height: 1;
}

.mz-jb-section {
    margin: 20px 0;
}

.mz-jb-section-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--mz-jb-text);
}

.mz-jb-section-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mz-jb-text);
}

.mz-jb-list {
    margin: 0;
    padding-inline-start: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--mz-jb-text);
}

.mz-jb-list li {
    margin-bottom: 4px;
}

.mz-jb-itinerary {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mz-jb-itinerary-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--mz-jb-border);
    font-size: 14px;
    line-height: 1.5;
}

.mz-jb-itinerary-item:last-child {
    border-bottom: none;
}

.mz-jb-itinerary-time {
    font-weight: 600;
    color: var(--mz-jb-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    unicode-bidi: isolate;
}

.mz-jb-itinerary-day {
    grid-column: 1 / -1;
    font-weight: 700;
    color: var(--mz-jb-text);
    margin-top: 8px;
    font-size: 14px;
}

/* ============ FORM ============ */
.mz-jb-form {
    margin-top: 24px;
    padding: 20px;
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
}

.mz-jb-form-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.mz-jb-form-field {
    margin-bottom: 14px;
}

.mz-jb-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mz-jb-text);
}

.mz-jb-form-field input[type="text"],
.mz-jb-form-field input[type="tel"],
.mz-jb-form-field input[type="date"],
.mz-jb-form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mz-jb-border);
    border-radius: 12px;
    background: var(--mz-jb-surface-2);
    color: var(--mz-jb-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-jb-form-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    cursor: pointer;
}

.mz-jb-form-field input:focus,
.mz-jb-form-field select:focus {
    outline: none;
    border-color: var(--mz-jb-primary);
    box-shadow: 0 0 0 3px rgba(95, 168, 134, 0.25);
}

.mz-jb-form-field input.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

.mz-jb-field-error {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #e53e3e;
    min-height: 18px;
}

.mz-jb-upcoming {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
}

.mz-jb-upcoming-empty {
    text-align: center;
    color: var(--mz-jb-muted);
    font-size: 14px;
    line-height: 1.6;
}

.mz-jb-upcoming-empty strong {
    color: var(--mz-jb-text);
    display: block;
    margin-bottom: 4px;
}

.mz-jb-upcoming-title {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--mz-jb-text);
}

.mz-jb-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mz-jb-upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--mz-jb-surface-2);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.mz-jb-upcoming-item:hover {
    border-color: var(--mz-jb-primary);
    transform: translateX(-2px);
    background: #eef7f1;
}

html[data-theme="dark"] .mz-jb-upcoming-item:hover {
    background: rgba(95, 168, 134, 0.18);
}

.mz-jb-upcoming-item:focus-visible {
    outline: 3px solid var(--mz-jb-focus);
    outline-offset: 2px;
}

.mz-jb-upcoming-item.is-selected {
    border-color: var(--mz-jb-primary);
    background: #eef7f1;
}

html[data-theme="dark"] .mz-jb-upcoming-item.is-selected {
    background: rgba(95, 168, 134, 0.22);
}

.mz-jb-upcoming-date {
    font-weight: 600;
    font-size: 14px;
    color: var(--mz-jb-text);
    unicode-bidi: isolate;
}

.mz-jb-upcoming-count {
    font-size: 12px;
    color: var(--mz-jb-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mz-jb-count-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mz-jb-primary);
    box-shadow: 0 0 0 3px rgba(95, 168, 134, 0.2);
}

.mz-jb-date-status {
    margin-top: 6px;
    font-size: 12px;
    color: var(--mz-jb-muted);
    min-height: 16px;
}

.mz-jb-date-status.is-info {
    color: var(--mz-jb-primary);
    font-weight: 600;
}

.mz-jb-phone-hint {
    margin-top: 6px;
    font-size: 12px;
    min-height: 16px;
    color: var(--mz-jb-muted);
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.mz-jb-phone-hint.is-ok {
    color: var(--mz-jb-primary);
    font-weight: 600;
}

.mz-jb-phone-hint.is-error {
    color: #b91c1c;
}

.mz-jb-form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--mz-jb-muted);
    line-height: 1.5;
}

.mz-jb-form-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.mz-jb-form-notice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--mz-jb-radius);
    font-size: 14px;
    display: none;
}

.mz-jb-form-notice.is-success {
    display: block;
    background: rgba(95, 168, 134, 0.15);
    color: var(--mz-jb-primary);
    border: 1px solid var(--mz-jb-primary);
}

.mz-jb-form-notice.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid #ef4444;
}

/* ============ GALLERY (details modal) ============ */
.mz-jb-gallery {
    margin-bottom: 20px;
}

.mz-jb-gallery-main {
    border-radius: var(--mz-jb-radius);
    overflow: hidden;
    background: var(--mz-jb-surface);
    aspect-ratio: 16 / 10;
}

.mz-jb-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mz-jb-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.mz-jb-gallery-thumbs::-webkit-scrollbar { display: none; }

/* Wrap needed for the fade overlay */
.mz-jb-gallery-thumbs-wrap {
    position: relative;
}


.mz-jb-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.mz-jb-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mz-jb-border);
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.mz-jb-gallery-dot.is-active {
    background: var(--mz-jb-primary);
    transform: scale(1.3);
}

.mz-jb-gallery-thumb-btn {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.mz-jb-gallery-thumb-btn:hover,
.mz-jb-gallery-thumb-btn.is-active {
    border-color: var(--mz-jb-primary);
    opacity: 1;
}

.mz-jb-gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ MODAL RESPONSIVE ============ */
@media (max-width: 560px) {
    .mz-jb-modal-content { padding: 60px 20px 20px; }
    .mz-jb-modal-title { font-size: 20px; }
    .mz-jb-modal-facts { padding: 12px; }
    .mz-jb-card-body { padding: 16px; }
    .mz-jb-card-title { font-size: 18px; }
    .mz-jb-card-actions { flex-direction: row; }
    .mz-jb-gallery-thumb-btn { width: 52px; height: 52px; }
}

/* ============ REZDY LIVE DEPARTURES — CALENDAR ============ */
.mz-jb-rezdy-wrap {
    margin-bottom: 18px;
}

.mz-jb-rezdy-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    font-size: 14px;
    color: var(--mz-jb-muted);
}

/* CSS-only spinner */
.mz-jb-rezdy-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--mz-jb-border);
    border-top-color: var(--mz-jb-primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: mz-jb-spin 0.8s linear infinite;
}

@keyframes mz-jb-spin {
    to { transform: rotate(360deg); }
}

/* ---- Calendar shell ---- */
.mz-jb-cal {
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    padding: 16px;
    direction: ltr;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.mz-jb-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mz-jb-cal-month-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--mz-jb-text);
    direction: rtl;
}

.mz-jb-calendar-wrap .mz-jb-cal-nav,
#mz-jb-cal-prev,
#mz-jb-cal-next {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #5FA886 !important;
    border-radius: 8px !important;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    cursor: pointer;
    color: #5FA886 !important;
    fill: #5FA886 !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-shadow: none !important;
    outline: none;
    text-decoration: none !important;
}

.mz-jb-calendar-wrap .mz-jb-cal-nav:hover:not(:disabled),
.mz-jb-calendar-wrap .mz-jb-cal-nav:active:not(:disabled),
#mz-jb-cal-prev:hover,
#mz-jb-cal-next:hover,
#mz-jb-cal-prev:active,
#mz-jb-cal-next:active {
    background: #5FA886 !important;
    background-color: #5FA886 !important;
    border-color: #5FA886 !important;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.mz-jb-calendar-wrap .mz-jb-cal-nav:disabled,
#mz-jb-cal-prev:disabled,
#mz-jb-cal-next:disabled {
    opacity: 0.3 !important;
    cursor: default;
}

/* ---- Grid ---- */
.mz-jb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.mz-jb-cal-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--mz-jb-muted);
    padding-bottom: 6px;
    text-transform: uppercase;
    min-width: 0;
    overflow: hidden;
}

.mz-jb-cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    position: relative;
    gap: 1px;
    min-width: 0;
}

.mz-jb-cal-empty {
    background: none;
}

.mz-jb-cal-unavail {
    color: var(--mz-jb-muted);
    opacity: 0.4;
}

.mz-jb-cal-unavail.is-today .mz-jb-cal-day-num {
    font-weight: 700;
    color: var(--mz-jb-text);
    opacity: 1;
}

.mz-jb-cal-available {
    background: var(--mz-jb-primary);
    border: 1.5px solid var(--mz-jb-primary);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}

.mz-jb-cal-available:hover {
    background: #3d8363;
    border-color: #3d8363;
    color: #ffffff;
    transform: scale(1.08);
    z-index: 1;
}

.mz-jb-cal-available.is-selected {
    background: #1f5f3d !important;
    border-color: #1f5f3d !important;
    color: #ffffff !important;
    transform: scale(1.08);
    z-index: 1;
}

.mz-jb-cal-available.is-low {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.mz-jb-cal-available.is-low:hover {
    background: #b45309;
    border-color: #b45309;
}

.mz-jb-cal-available.is-low.is-selected {
    background: #92400e !important;
    border-color: #92400e !important;
}

.mz-jb-cal-available:focus-visible {
    outline: 3px solid var(--mz-jb-focus);
    outline-offset: 2px;
}

.mz-jb-cal-day-num {
    font-weight: 600;
    line-height: 1;
}

.mz-jb-cal-spots {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    min-width: 0;
    max-width: 100%;
}

/* ---- Legend ---- */
.mz-jb-cal-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--mz-jb-muted);
    direction: rtl;
}

.mz-jb-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mz-jb-cal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.mz-jb-cal-legend-dot.is-avail { background: rgba(95, 168, 134, 0.4); border: 1px solid rgba(95,168,134,0.5); }
.mz-jb-cal-legend-dot.is-low   { background: rgba(217, 119, 6, 0.35); border: 1px solid rgba(217,119,6,0.5); }

.mz-jb-cal-legend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mz-jb-cal-legend-icon.is-avail { color: #5FA886; }
.mz-jb-cal-legend-icon.is-low   { color: #d97706; }

html[data-theme="dark"] .mz-jb-cal-legend-icon.is-avail,
body[data-theme="dark"] .mz-jb-cal-legend-icon.is-avail { color: #5FA886 !important; }
html[data-theme="dark"] .mz-jb-cal-legend-icon.is-avail svg,
body[data-theme="dark"] .mz-jb-cal-legend-icon.is-avail svg { fill: #5FA886 !important; }

html[data-theme="dark"] .mz-jb-cal-legend-icon.is-low,
body[data-theme="dark"] .mz-jb-cal-legend-icon.is-low   { color: #d97706 !important; }
html[data-theme="dark"] .mz-jb-cal-legend-icon.is-low svg,
body[data-theme="dark"] .mz-jb-cal-legend-icon.is-low svg { fill: #d97706 !important; }

/* ---- Selected date display ---- */
.mz-jb-selected-date {
    padding: 10px 14px;
    border-radius: var(--mz-jb-radius-sm);
    font-size: 14px;
    color: var(--mz-jb-muted);
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
}

.mz-jb-selected-date.is-set {
    background: #eef7f1;
    color: #1f5f3d;
    border-color: var(--mz-jb-primary);
    font-weight: 600;
}

html[data-theme="dark"] .mz-jb-selected-date.is-set {
    background: rgba(95, 168, 134, 0.18);
    color: #d1fae5;
}

/* ---- Empty/fallback ---- */
.mz-jb-rezdy {
    padding: 14px 16px;
    background: var(--mz-jb-surface);
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
}

.mz-jb-rezdy-empty {
    text-align: center;
    font-size: 14px;
    color: var(--mz-jb-muted);
    line-height: 1.6;
}

.mz-jb-rezdy-empty strong {
    display: block;
    color: var(--mz-jb-text);
    margin-bottom: 4px;
}

/* ---- Calendar mobile ---- */
@media (max-width: 560px) {
    /* Reduce form padding so 7-column calendar has room */
    .mz-jb-form {
        padding: 12px 10px;
    }
    .mz-jb-cal {
        padding: 10px 6px;
    }
    .mz-jb-cal-grid {
        gap: 2px;
    }
    .mz-jb-cal-dow {
        font-size: 9px;
        padding-bottom: 4px;
    }
    .mz-jb-cal-cell {
        font-size: 11px;
        border-radius: 6px;
    }
    .mz-jb-cal-spots {
        font-size: 8px;
    }
    .mz-jb-cal-spots svg {
        width: 7px;
        height: 7px;
        flex-shrink: 0;
    }
    .mz-jb-calendar-wrap .mz-jb-cal-nav {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px;
    }
    .mz-jb-cal-month-label {
        font-size: 14px;
    }
    .mz-jb-cal-legend {
        gap: 10px;
        font-size: 11px;
    }
}

/* Prevent body scroll when modal open (added via JS) */
body.mz-jb-modal-open {
    overflow: hidden;
}

/* ============ DATES BUTTON (card) ============ */
.mz-jb-card-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: transparent !important;
    border: 1px solid var(--mz-jb-border) !important;
    border-radius: 50px;
    color: var(--mz-jb-muted) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    box-shadow: none !important;
}

.mz-jb-card-dates:hover {
    color: var(--mz-jb-primary) !important;
    border-color: var(--mz-jb-primary) !important;
    background: rgba(95, 168, 134, 0.07) !important;
}

.mz-jb-card-dates:focus-visible {
    outline: 3px solid var(--mz-jb-focus);
    outline-offset: 2px;
}

/* ============ DATES MODAL ============ */
.mz-jb-dates-empty {
    margin: 24px 0;
    padding: 24px;
    background: var(--mz-jb-surface);
    border-radius: var(--mz-jb-radius);
    text-align: center;
    color: var(--mz-jb-muted);
    font-size: 15px;
    line-height: 1.65;
}

.mz-jb-dates-list {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    border: 1px solid var(--mz-jb-border);
    border-radius: var(--mz-jb-radius);
    overflow: hidden;
}

.mz-jb-dates-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--mz-jb-surface);
    border-bottom: 1px solid var(--mz-jb-border);
    transition: background 0.15s;
}

.mz-jb-dates-row:last-child {
    border-bottom: none;
}

.mz-jb-dates-row:hover {
    background: var(--mz-jb-surface-2);
}

.mz-jb-dates-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.mz-jb-dates-date {
    font-weight: 700;
    font-size: 15px;
    color: var(--mz-jb-text);
}

.mz-jb-dates-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mz-jb-dates-count {
    font-size: 13px;
    color: var(--mz-jb-muted);
}

/* Fixed-date banner in signup form */
.mz-jb-fixed-date-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #eef7f1;
    border-inline-start: 4px solid var(--mz-jb-primary);
    border-radius: var(--mz-jb-radius-sm);
    font-size: 14px;
    color: #1f5f3d;
}

html[data-theme="dark"] .mz-jb-fixed-date-banner,
body[data-theme="dark"] .mz-jb-fixed-date-banner {
    background: rgba(95, 168, 134, 0.15);
    color: #d1fae5;
}

.mz-jb-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.mz-jb-status-badge.is-open {
    background: #d1fae5;
    color: #065f46;
}

.mz-jb-status-badge.is-filling {
    background: #fef3c7;
    color: #92400e;
}

.mz-jb-status-badge.is-full {
    background: #fee2e2;
    color: #991b1b;
}

html[data-theme="dark"] .mz-jb-status-badge.is-open,
body[data-theme="dark"] .mz-jb-status-badge.is-open {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

html[data-theme="dark"] .mz-jb-status-badge.is-filling,
body[data-theme="dark"] .mz-jb-status-badge.is-filling {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

html[data-theme="dark"] .mz-jb-status-badge.is-full,
body[data-theme="dark"] .mz-jb-status-badge.is-full {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.mz-jb-join-date-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--mz-jb-primary), #3d8363);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mz-jb-join-date-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(95, 168, 134, 0.4);
}
