/* ==========================================================================
   Hidden Features (Language Switcher & Service ID)
   ========================================================================== */
.pj-language-nav,
.pj-language-switch,
.pj-language-bar,
[aria-label="Choose language"],
[aria-label="ভাষা নির্বাচন"] {
  display: none !important;
}

/* 1. Five-column stats layout for Cottage Rent sub-dashboard on desktop */
@media (min-width: 1280px) {
  .pj-stats-5col-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 640px) and (max-width: 1279px) {
  .pj-stats-5col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* 2. Advance Booking Stat Card - ALL TEXT PURE WHITE */
.pj-advance-stat-card {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.9), rgba(76, 5, 25, 0.85)) !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.pj-advance-stat-card,
.pj-advance-stat-card p,
.pj-advance-stat-card span,
.pj-advance-stat-card strong,
.pj-advance-stat-card div,
.pj-advance-stat-card .pj-advance-count-val,
.pj-advance-stat-card .pj-advance-arrow {
  color: #ffffff !important;
}

.pj-advance-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.75) !important;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

.pj-advance-card-icon {
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}

.pj-advance-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.pj-advance-stat-card:hover .pj-advance-arrow {
  transform: translateX(4px);
}

/* 3. Check-in & Check-out Input Styling */
.pj-interactive-date-input {
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: all 0.15s ease;
}

.pj-interactive-date-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4) !important;
}

/* 4. Display-Centered Calendar Modal Overlay */
.pj-calendar-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: pjFadeIn 0.18s ease;
}

.pj-custom-calendar-popup {
  position: relative;
  width: 400px;
  max-width: 95vw;
  background: #0f172a;
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(244, 63, 94, 0.2);
  font-family: inherit;
  color: #f8fafc;
  animation: pjModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pjModalPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pj-cal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pj-cal-mode-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.pj-cal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pj-cal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.pj-cal-cottage-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pj-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pj-cal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
}

.pj-cal-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 0.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  transition: all 0.15s ease;
}

.pj-cal-nav:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.pj-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  text-align: center;
}

.pj-cal-day-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.5);
  padding: 0.35rem 0;
  text-transform: uppercase;
}

.pj-cal-empty {
  height: 2.35rem;
}

.pj-cal-day {
  height: 2.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  position: relative;
}

.pj-cal-day:hover:not(.pj-past):not(.pj-booked-red):not(.pj-disabled) {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
  border: 1px solid #34d399;
  transform: scale(1.06);
}

.pj-cal-day.pj-past,
.pj-cal-day.pj-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.pj-cal-day.pj-today {
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #38bdf8;
  font-weight: 800;
}

/* BOOKED DATES IN RED (যে তারিখ গুলোতে বুকিং হয়ে গেছে সেই তারিখ গুলো যেন লাল মার্ক করা থাকে) */
.pj-cal-day.pj-booked-red {
  background: linear-gradient(135deg, #ef4444, #991b1b) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid #fca5a5 !important;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35) !important;
  cursor: not-allowed !important;
}

.pj-cal-day.pj-booked-red::after {
  content: '🔒';
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 8px;
}

/* SELECTED DATE HIGHLIGHT */
.pj-cal-day.pj-selected-active {
  background: linear-gradient(135deg, #059669, #0d9488) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8), 0 0 0 2px #6ee7b7 !important;
  transform: scale(1.08);
}

.pj-cal-warning {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.75rem;
  text-align: center;
  font-weight: bold;
  animation: pjFadeIn 0.2s ease;
}

.pj-cal-footer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.pj-cal-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pj-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #cbd5e1;
}

.pj-legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.25rem;
  display: inline-block;
}

.pj-legend-booked {
  background: #ef4444;
  border: 1px solid #fca5a5;
}

.pj-legend-selected {
  background: #059669;
  border: 1px solid #6ee7b7;
}

.pj-legend-available {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 5. Advance Bookings List Modal */
.pj-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: pjFadeIn 0.2s ease;
}

.pj-modal-container {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(244, 63, 94, 0.15);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 950px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pjModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pj-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.pj-modal-icon {
  font-size: 1.75rem;
  background: rgba(244, 63, 94, 0.15);
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.pj-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pj-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.pj-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.pj-modal-loading {
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.pj-modal-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pj-tag-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

@keyframes pjFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}