/* ==========================================================================
 * Voyaseek Date Range Picker — Styles
 * ========================================================================== */

.drp {
  position: relative;
}

.drp .drp-input {
  cursor: pointer;
  background: #fff;
  caret-color: transparent;
}

.drp .drp-input:read-only,
.drp .drp-input[readonly] {
  background: #fff;
}

/* Floating panel */
.drp-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 200;
  display: none;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
  color: #202431;
}

.drp.drp-open .drp-panel {
  display: block;
  animation: drpFadeIn 0.18s ease-out;
}

@keyframes drpFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.drp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drp-titles {
  flex: 1;
  text-align: center;
}

.drp-title {
  font-size: 1rem;
  font-weight: 600;
  color: #202431;
}

.drp-nav {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #4b5563;
  transition: all 0.18s;
}

.drp-nav:hover {
  background: #fff5f5;
  border-color: #ff4c4c;
  color: #ff4c4c;
}

/* Months */
.drp-months {
  display: block;
}

.drp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.drp-wd {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 0;
}

.drp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.drp-day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  color: #202431;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.12s, color 0.12s;
  padding: 0;
}

.drp-day:hover:not(.drp-day-disabled):not(.drp-day-empty):not(.drp-day-start):not(.drp-day-end) {
  background: #fff0f0;
}

.drp-day-empty {
  cursor: default;
  pointer-events: none;
}

.drp-day-disabled {
  color: #d1d5db;
  cursor: not-allowed;
  text-decoration: line-through;
}

.drp-day-today {
  font-weight: 700;
  color: #ff4c4c;
}

.drp-day-in-range {
  background: #fff0f0;
  color: #ff4c4c;
  border-radius: 0;
}

.drp-day-start,
.drp-day-end {
  background: #ff4c4c;
  color: #fff;
  font-weight: 600;
}

.drp-day-start {
  border-radius: 6px 0 0 6px;
}

.drp-day-end {
  border-radius: 0 6px 6px 0;
}

.drp-day-start.drp-day-end {
  border-radius: 6px;
}

/* Footer */
.drp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

.drp-summary {
  font-size: 0.88rem;
  color: #4b5563;
  flex: 1;
}

.drp-actions {
  display: flex;
  gap: 8px;
}

.drp-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s;
}

.drp-btn:hover {
  background: #f9fafb;
}

.drp-apply {
  background: #ff4c4c;
  border-color: #ff4c4c;
  color: #fff;
}

.drp-apply:hover {
  background: #e63e3e;
  border-color: #e63e3e;
}

/* Responsive */
@media (max-width: 720px) {
  .drp-panel {
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    padding: 14px;
  }
  .drp-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .drp-actions {
    justify-content: flex-end;
  }
}

