/* ═══════════ تقویم قیمت صفحهٔ ویلا — سبک سفرجا (pc-*) ═══════════
   خانه‌های نرم و رنگی بدون قاب، رنگ سبز برند برای انتخاب، روزهای گذشته کم‌رنگ،
   قیمت کامل هر شب با فونت کوچک زیر عدد روز. تقویم کنار صفحه یک‌ماهه و تقویم بزرگ دوماهه. */
.pc {
  --pc-g: var(--accent, #3d6b4f);
  --pc-g-soft: rgba(61, 107, 79, .08);
  --pc-g-mid: rgba(61, 107, 79, .16);
  --pc-warm: #b7791f;
  --pc-warm-soft: #fbf1df;
  --pc-red: #d4380d;
  --pc-red-soft: #fdece6;
  --pc-line: var(--border, #e7e5df);
  --pc-card: var(--bg-card, #fff);
  --pc-text: var(--text, #1c2b22);
  --pc-muted: var(--text-muted, #8a948e);
  background: var(--pc-card);
  border-radius: 20px;
  padding: 14px 12px 12px;
  box-shadow: 0 1px 0 var(--pc-line), 0 10px 30px rgba(28, 43, 34, .06);
  font-variant-numeric: tabular-nums;
  color: var(--pc-text);
}

/* خلاصهٔ ورود / خروج (دو چیپ کنار هم) */
.pc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; align-items: stretch; }
.pc--big .pc-tabs { grid-template-columns: 1fr 1fr auto; }
.pc .pc-tab {
  all: unset; box-sizing: border-box; cursor: pointer; text-align: right;
  padding: 9px 12px; border-radius: 14px; background: var(--pc-g-soft);
  font-size: .8rem; font-weight: 800; color: var(--pc-muted);
  border: 1.5px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc .pc-tab::before { content: '📅 '; }
.pc .pc-tab.on { color: var(--pc-g); border-color: var(--pc-g); background: #fff; }
.pc .pc-x { all: unset; cursor: pointer; width: 38px; display: flex; align-items: center; justify-content: center; color: var(--pc-muted); font-size: 1rem; border-radius: 12px; background: var(--pc-g-soft); }
.pc .pc-x:hover { color: var(--pc-text); }

/* سر ماه */
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pc-month { font-size: 1rem; font-weight: 900; }
.pc .pc-nav {
  all: unset; box-sizing: border-box; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px;
  border: 1.5px solid var(--pc-line); color: var(--pc-g); font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding-bottom: 3px; transition: .15s;
}
.pc .pc-nav:hover:not(:disabled) { background: var(--pc-g); border-color: var(--pc-g); color: #fff; }
.pc .pc-nav:disabled { opacity: .3; cursor: default; }
.pc-nav-spacer { width: 34px; flex: 0 0 34px; }

/* شبکهٔ روزها */
.pc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pc-dow { text-align: center; font-size: .7rem; font-weight: 800; color: var(--pc-muted); padding: 2px 0 8px; }
.pc-dow--fri { color: var(--pc-red); }
.pc-empty { min-height: 48px; }

.pc .pc-day {
  all: unset; box-sizing: border-box; position: relative;
  min-width: 0; min-height: 50px; padding: 7px 1px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px;
  border-radius: 14px; background: var(--pc-g-soft);
  cursor: pointer; text-align: center; overflow: hidden;
  transition: transform .12s, background .12s, box-shadow .12s;
}
.pc .pc-day:hover:not(:disabled) { background: var(--pc-g-mid); transform: translateY(-1px); }
.pc .pc-day:focus-visible { outline: 2px solid var(--pc-g); outline-offset: 1px; }

.pc-num { font-size: .95rem; font-weight: 800; line-height: 1.1; color: var(--pc-text); }
.pc-price {
  display: block; max-width: 100%; white-space: nowrap; overflow: hidden;
  font-size: .58rem; font-weight: 700; line-height: 1.2; color: var(--pc-g);
  letter-spacing: -.3px; direction: ltr; unicode-bidi: isolate;
}
.pc-price--off { color: #0e9f6e; }
.pc-price--wait { width: 70%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(61,107,79,.08), rgba(61,107,79,.2), rgba(61,107,79,.08)); background-size: 200% 100%; animation: pcShimmer 1.1s linear infinite; }
@keyframes pcShimmer { to { background-position: -200% 0; } }

/* آخر هفته: کهربایی؛ جمعه و تعطیل: قرمز ملایم */
.pc .pc-day--wknd { background: var(--pc-warm-soft); }
.pc .pc-day--wknd .pc-price { color: var(--pc-warm); }
.pc .pc-day.is-holiday { background: var(--pc-red-soft); }
.pc .pc-day.is-holiday .pc-num, .pc .pc-day.is-holiday .pc-price { color: var(--pc-red); }

/* گذشته: فقط عدد کم‌رنگ، بدون خانه */
.pc .pc-day.is-past { background: transparent; cursor: default; justify-content: center; }
.pc .pc-day.is-past .pc-num { color: var(--pc-muted); opacity: .45; font-weight: 600; }

/* امروز: نقطهٔ سبز زیر عدد */
.pc .pc-day.is-today .pc-num { color: var(--pc-g); }
.pc .pc-day.is-today::before {
  content: ''; position: absolute; top: 4px; right: 50%; transform: translateX(50%);
  width: 14px; height: 3px; border-radius: 3px; background: var(--pc-g);
}

/* پر */
.pc .pc-day.is-booked { background: transparent; box-shadow: inset 0 0 0 1px var(--pc-line); cursor: not-allowed; }
.pc .pc-day.is-booked .pc-num { color: var(--pc-muted); text-decoration: line-through; }
.pc-price--full { color: var(--pc-muted) !important; font-size: .6rem; }

/* بازهٔ انتخاب (سبز برند) */
.pc .pc-day.is-range { background: var(--pc-g-mid); border-radius: 6px; }
.pc .pc-day.is-checkin, .pc .pc-day.is-checkout { background: var(--pc-g); box-shadow: 0 6px 16px rgba(61, 107, 79, .3); }
.pc .pc-day.is-checkin .pc-num, .pc .pc-day.is-checkout .pc-num,
.pc .pc-day.is-checkin .pc-price, .pc .pc-day.is-checkout .pc-price { color: #fff !important; }
.pc .pc-day.is-checkin::before, .pc .pc-day.is-checkout::before { background: #fff; }

/* پایین تقویم */
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pc .pc-guide, .pc .pc-clear { all: unset; box-sizing: border-box; cursor: pointer; font-size: .76rem; font-weight: 800; padding: 7px 12px; border-radius: 12px; }
.pc .pc-guide { background: var(--pc-g); color: #fff; }
.pc .pc-guide:hover { filter: brightness(1.08); }
.pc .pc-clear { color: var(--pc-muted); }
.pc .pc-clear:hover { color: var(--pc-red); }
.pc-guide-text { font-size: .72rem; color: var(--pc-muted); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pc-sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-inline-start: 6px; }
.pc-sw--today { background: var(--pc-g); height: 4px; }
.pc-sw--holiday { background: var(--pc-red-soft); box-shadow: inset 0 0 0 1px var(--pc-red); }
.pc-sw--booked { box-shadow: inset 0 0 0 1px var(--pc-line); }

/* تقویم کنار صفحه در دسکتاپ (حدود ۳۵۰px) */
#desktopBookingPanel .pc { padding: 12px 6px 10px; }
#desktopBookingPanel .pc-grid { gap: 3px; }
#desktopBookingPanel .pc .pc-day { min-height: 46px; padding-left: 0; padding-right: 0; border-radius: 12px; }

/* ── پنجرهٔ تقویم بزرگ دوماهه ── */
.pc-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 16px; }
.pc-modal.open { display: flex; }
.pc-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 30, 22, .5); backdrop-filter: blur(2px); }
.pc--big { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.pc-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pc--big .pc-day { min-height: 52px; }
.pc--big .pc-price { font-size: .6rem; }
@media (max-width: 760px) {
  .pc-months { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 380px) {
  .pc { padding: 10px 6px; }
  .pc-grid { gap: 3px; }
  .pc .pc-day { min-height: 44px; }
  .pc-num { font-size: .88rem; }
  .pc-price { font-size: .52rem; }
}

/* حالت تیره */
[data-theme="dark"] .pc { --pc-g-soft: rgba(90, 148, 112, .12); --pc-g-mid: rgba(90, 148, 112, .24); --pc-warm-soft: rgba(232, 168, 85, .12); --pc-red-soft: rgba(251, 113, 80, .12); box-shadow: none; border: 1px solid var(--pc-line); }
[data-theme="dark"] .pc .pc-tab.on { background: transparent; }
