/* ==========================================================================
   datepicker.css — custom calendar for the flight search
   Loads after style.css and flight.css. The trigger deliberately matches the
   44px height and border treatment of the other search inputs.
   Deploy to: /var/www/punjabtravel.co.uk/html/assets/css/datepicker.css
   ========================================================================== */

/* ---------- Trigger ---------- */

.dp-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d7dbe6;
  border-radius: 4px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.dp-trigger:hover {
  border-color: #b9c0d2;
}

.dp-trigger[aria-expanded="true"] {
  border-color: var(--gold);
}

.dp-trigger svg {
  flex-shrink: 0;
  color: var(--navy);
  opacity: 0.6;
}

.dp-trigger__value.is-placeholder {
  color: #9aa1b5;
}

/* Disabled return field on a one-way trip. flight.css fades the whole field;
   this stops the click before JS is involved. */
.search-field--disabled .dp-trigger {
  pointer-events: none;
  background: var(--bg-soft);
}

/* ---------- Panel ---------- */

.dp-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 41, 76, 0.18);
}

.dp-panel[hidden] {
  display: none;
}

/* ---------- Header ---------- */

.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-month {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--navy);
  transition: background 0.2s var(--ease);
}

.dp-nav:hover:not(:disabled) {
  background: var(--bg-soft);
}

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

/* ---------- Grid ---------- */

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

.dp-weekdays {
  margin-bottom: 6px;
}

.dp-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-text);
  padding-bottom: 4px;
}

.dp-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.dp-day--empty {
  pointer-events: none;
}

.dp-day:hover:not(:disabled):not(.dp-day--empty) {
  background: var(--bg-soft);
}

.dp-day--disabled {
  color: #c3c8d6;
  cursor: not-allowed;
}

/* Today is marked, not selected — a ring rather than a fill, so it never
   reads as though a date has already been chosen. */
.dp-day--today {
  box-shadow: inset 0 0 0 1px var(--gold);
  font-weight: 700;
}

.dp-day--selected,
.dp-day--selected:hover {
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 700;
}

/* ---------- Clear ---------- */

.dp-clear {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f7;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.dp-clear:hover {
  color: var(--gold-dark);
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .dp-panel {
    width: 100%;
    left: 0;
    right: 0;
  }

  .dp-day {
    font-size: 14px;
  }
}