/* ── CUSTOM DATE PICKER ──
   Themed to match the Buy Business Flights search card (dark + green accent).
   Replaces the native <input type="date"> calendar popup. */

.date-field[data-dp] {
  position: relative;
  cursor: pointer;
}

.date-field[data-dp] input {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.date-field[data-dp] input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.dp-popup {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 60;
  width: 280px;
  background: #141a22;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 14px;
  font-family: "DM Sans", sans-serif;
  display: none;
  user-select: none;
}

.dp-popup.is-open {
  display: block;
  animation: dpFade 0.14s ease;
}

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

/* anchor to the right edge for the Return field so it stays in the card */
.dp-popup.align-right {
  left: auto;
  right: 0;
}

/* header */
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dp-nav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.dp-nav:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--green);
}

.dp-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dp-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

/* weekday row */
.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.dp-wd {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 4px 0;
}

/* day grid */
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dp-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  position: relative;
}

.dp-day:hover:not(.is-disabled):not(.is-selected) {
  background: rgba(255, 255, 255, 0.08);
}

.dp-day.is-other {
  color: rgba(255, 255, 255, 0.22);
}

.dp-day.is-disabled {
  color: rgba(255, 255, 255, 0.18);
  cursor: not-allowed;
  text-decoration: line-through;
}

.dp-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.6);
}

.dp-day.is-selected {
  background: var(--green);
  color: #06231a;
  font-weight: 700;
}

.dp-day.is-selected.is-today {
  box-shadow: inset 0 0 0 2px #fff;
}

/* footer hint */
.dp-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dp-foot button {
  background: none;
  border: none;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 0;
}