/* استایل اختصاصی، ایزوله و واکنش‌گرا افزونه اتصال هوشمند جاکجاست (RTL) */
.jk-wpc-booking-widget,
.jk-wpc-inline-calendar,
.jk-wpc-specs-wrap,
.jk-wpc-grid,
.jk-wpc-single-container {
    --jk-brand: #059669;
    --jk-brand-dark: #047857;
    --jk-brand-soft: #ecfdf5;
    --jk-ink: #0f172a;
    --jk-muted: #64748b;
    --jk-border: #e2e8f0;
    --jk-bg: #ffffff;
    --jk-surface: #f8fafc;
    --jk-amber: #d97706;
    --jk-amber-soft: #fffbeb;
    --jk-danger: #dc2626;
    --jk-radius: 16px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    color: var(--jk-ink);
}

.jk-wpc-booking-widget *,
.jk-wpc-inline-calendar *,
.jk-wpc-specs-wrap *,
.jk-wpc-grid *,
.jk-wpc-single-container * {
    box-sizing: border-box;
}

/* ویجت رزرو سایدبار */
.jk-wpc-booking-widget {
    background: var(--jk-bg);
    border: 1px solid var(--jk-border);
    border-radius: var(--jk-radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    overflow: visible;
    position: relative;
    margin-bottom: 24px;
}

.jk-wpc-bw-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--jk-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--jk-radius) var(--jk-radius) 0 0;
}

.jk-wpc-bw-price small {
    display: block;
    font-size: 12px;
    color: var(--jk-muted);
    margin-bottom: 2px;
}

.jk-wpc-bw-price del {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 6px;
}

.jk-wpc-bw-price strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--jk-ink);
}

.jk-wpc-bw-price strong span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jk-muted);
}

.jk-wpc-bw-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.jk-wpc-code-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.jk-wpc-mode-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.jk-wpc-mode-pill.is-instant {
    background: var(--jk-brand-soft);
    color: var(--jk-brand-dark);
    border: 1px solid #a7f3d0;
}

.jk-wpc-mode-pill.is-enquiry {
    background: var(--jk-amber-soft);
    color: #b45309;
    border: 1px solid #fde68a;
}

.jk-wpc-bw-body {
    padding: 18px 20px 20px;
}

.jk-wpc-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}

.jk-wpc-date-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 10px 12px;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.jk-wpc-date-btn:first-child {
    border-left: 1px solid var(--jk-border);
}

.jk-wpc-date-btn:hover,
.jk-wpc-date-btn.is-active {
    background: var(--jk-brand-soft);
}

.jk-wpc-date-btn .jk-wpc-lbl {
    display: block;
    font-size: 11px;
    color: var(--jk-muted);
    margin-bottom: 3px;
}

.jk-wpc-date-btn strong {
    display: block;
    font-size: 13.5px;
    color: var(--jk-ink);
    font-weight: 800;
}

/* پاپ‌آپ تقویم شمسی داخل ویجت */
.jk-wpc-popover-cal {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.jk-wpc-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.jk-wpc-cal-toolbar strong {
    font-size: 14px;
    font-weight: 800;
}

.jk-wpc-cal-nav {
    border: 1px solid var(--jk-border);
    background: var(--jk-surface);
    color: var(--jk-ink);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.jk-wpc-cal-nav:hover:not(:disabled) {
    background: #e2e8f0;
}

.jk-wpc-cal-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.jk-wpc-cal-hint {
    font-size: 11.5px;
    color: var(--jk-brand-dark);
    background: var(--jk-brand-soft);
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
}

.jk-wpc-cal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--jk-border);
}

.jk-wpc-link-btn {
    border: none;
    background: none;
    color: var(--jk-danger);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.jk-wpc-close-btn {
    border: 1px solid var(--jk-border);
    background: var(--jk-ink);
    color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

/* شبکه روزهای تقویم شمسی */
.jk-cal-month-card {
    background: #fff;
}

.jk-cal-month-head {
    text-align: center;
    font-weight: 800;
    font-size: 14.5px;
    margin-bottom: 8px;
    color: var(--jk-ink);
}

.jk-cal-weekdays,
.jk-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.jk-cal-weekdays span {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--jk-muted);
    padding: 4px 0;
}

.jk-cal-day {
    min-height: 46px;
    border: 1px solid #eef2f6;
    border-radius: 9px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.14s ease;
    user-select: none;
}

.jk-cal-day.is-empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.jk-cal-day .d-num {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.jk-cal-day .d-prc {
    font-size: 10px;
    color: #475569;
    margin-top: 2px;
    line-height: 1;
}

.jk-cal-day .d-inst {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.jk-cal-day .d-disc {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 0 3px;
    border-radius: 4px;
}

.jk-cal-day:hover:not(.is-disabled):not(.is-empty) {
    border-color: var(--jk-brand);
    background: var(--jk-brand-soft);
}

.jk-cal-day.is-disabled {
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 5px, #f1f5f9 5px, #f1f5f9 10px);
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
}

.jk-cal-day.is-disabled .d-prc {
    display: none;
}

.jk-cal-day.is-selected-start,
.jk-cal-day.is-selected-end {
    background: var(--jk-brand) !important;
    border-color: var(--jk-brand-dark) !important;
    color: #fff !important;
}

.jk-cal-day.is-selected-start .d-prc,
.jk-cal-day.is-selected-end .d-prc {
    color: #ecfdf5 !important;
}

.jk-cal-day.is-in-range {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

/* بخش تعداد نفرات */
.jk-wpc-guests-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--jk-border);
    border-radius: 12px;
    margin-bottom: 14px;
    background: var(--jk-surface);
}

.jk-wpc-guests-box strong {
    display: block;
    font-size: 13px;
}

.jk-wpc-guests-box small {
    font-size: 11px;
    color: var(--jk-muted);
}

.jk-wpc-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.jk-wpc-stepper button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    color: var(--jk-ink);
}

.jk-wpc-stepper button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.jk-wpc-stepper span {
    min-width: 20px;
    text-align: center;
    font-weight: 800;
    font-size: 14.5px;
}

/* جعبه پیش‌فاکتور زنده */
.jk-wpc-quote-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 12.8px;
}

.jk-quote-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #334155;
}

.jk-quote-total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px dashed #cbd5e1;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--jk-ink);
}

/* فرم مهمان */
.jk-wpc-field {
    margin-bottom: 11px;
}

.jk-wpc-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #334155;
}

.jk-wpc-field input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    color: var(--jk-ink);
}

.jk-wpc-field input:focus {
    outline: none;
    border-color: var(--jk-brand);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.jk-wpc-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.jk-wpc-submit-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s, opacity 0.15s;
}

.jk-wpc-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.jk-wpc-submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.jk-wpc-trust-note {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--jk-muted);
    text-align: center;
}

/* کارت نتیجه ثبت موفق */
.jk-wpc-result-card {
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    line-height: 1.75;
}

.jk-wpc-result-card.is-instant {
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #064e3b;
}

.jk-wpc-result-card.is-enquiry {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    color: #78350f;
}

.jk-wpc-result-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.jk-wpc-result-action {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #059669;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 13.5px;
}

/* تقویم ۲ ماهه داخل متن صفحه */
.jk-wpc-inline-calendar {
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: var(--jk-radius);
    padding: 20px;
    margin: 24px 0;
}

.jk-wpc-ic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.jk-wpc-ic-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
}

.jk-wpc-ic-header p {
    margin: 0;
    font-size: 12.5px;
    color: var(--jk-muted);
}

.jk-wpc-ic-legend {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #475569;
}

.jk-wpc-ic-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

.jk-wpc-ic-legend .dot.avail { background: #e2e8f0; border: 1px solid #94a3b8; }
.jk-wpc-ic-legend .dot.instant { background: #10b981; }
.jk-wpc-ic-legend .dot.booked { background: #cbd5e1; }

.jk-wpc-ic-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.jk-wpc-ic-months {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* مشخصات و امکانات + گرید آرشیو + قالب تکی مستقل */
.jk-wpc-specs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.jk-wpc-chip {
    background: var(--jk-surface);
    border: 1px solid var(--jk-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.8px;
}

.jk-wpc-specs-block {
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.jk-wpc-specs-block h4 {
    margin: 0 0 12px;
    font-size: 15.5px;
}

.jk-wpc-tags-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    font-size: 13px;
}

.jk-wpc-rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.9;
}

.jk-wpc-cancel-box {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: #fffbeb;
    border-radius: 10px;
    font-size: 12.5px;
}

.jk-wpc-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
.jk-wpc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.jk-wpc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.jk-wpc-cols-4 { grid-template-columns: repeat(4, 1fr); }

.jk-wpc-card {
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.jk-wpc-card:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}
.jk-wpc-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}
.jk-wpc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jk-wpc-badge-instant {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(5, 150, 105, 0.94);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
}
.jk-wpc-badge-code {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}
.jk-wpc-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.jk-wpc-card-loc {
    font-size: 12px;
    color: var(--jk-muted);
    margin-bottom: 4px;
}
.jk-wpc-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
}
.jk-wpc-card-title a {
    color: var(--jk-ink);
    text-decoration: none;
}
.jk-wpc-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 12px;
}
.jk-wpc-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--jk-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.jk-wpc-card-footer small {
    display: block;
    font-size: 11px;
    color: var(--jk-muted);
}
.jk-wpc-card-btn {
    background: var(--jk-ink);
    color: #fff !important;
    text-decoration: none !important;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

/* قالب صفحه تکی مستقل */
.jk-wpc-single-container {
    max-width: 1220px;
    margin: 28px auto;
    padding: 0 16px;
}
.jk-wpc-single-title {
    margin: 8px 0 18px;
    font-size: 24px;
    font-weight: 800;
}
.jk-wpc-hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 190px 190px;
    gap: 8px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
}
.jk-wpc-hero-gallery .item-0 {
    grid-row: 1 / 3;
}
.jk-wpc-hero-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jk-wpc-single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
.jk-wpc-sticky-box {
    position: sticky;
    top: 24px;
}
.jk-wpc-content-box {
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .jk-wpc-ic-months,
    .jk-wpc-cols-3,
    .jk-wpc-cols-4,
    .jk-wpc-single-layout {
        grid-template-columns: 1fr;
    }
    .jk-wpc-hero-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 120px;
    }
    .jk-wpc-hero-gallery .item-0 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
}
