/*
 * FLYTORIDE Calendar Plugin — Styles
 * Designed to match FLYTORIDE branding: dark background, #F5C518 yellow accent.
 * All classes are prefixed with .ftr- to avoid conflicts with your theme.
 * Override freely in your theme's CSS.
 */

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --ftr-yellow:      #F5C518;
  --ftr-bg:          #111111;
  --ftr-bg-card:     #1a1a1a;
  --ftr-border:      #2a2a2a;
  --ftr-text:        #f0f0f0;
  --ftr-text-muted:  #888888;
  --ftr-radius:      8px;
  --ftr-font:        inherit;
}

/* ─── Calendar container ─────────────────────────────────────────────────── */
.ftr-calendar,
.ftr-tour-dates {
  font-family: var(--ftr-font);
  color: var(--ftr-text);
}

/* ─── Filters ────────────────────────────────────────────────────────────── */
.ftr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.ftr-filters__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ftr-text-muted);
  margin-bottom: 8px;
}

.ftr-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ftr-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--ftr-border);
  background: transparent;
  color: var(--ftr-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ftr-filter-btn:hover {
  border-color: var(--ftr-yellow);
  color: var(--ftr-text);
}

.ftr-filter-btn--active {
  background: var(--ftr-yellow);
  border-color: var(--ftr-yellow);
  color: #111;
  font-weight: 600;
}

/* ─── Departure rows ─────────────────────────────────────────────────────── */
.ftr-deps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ftr-dep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ftr-bg-card);
  border: 1px solid var(--ftr-border);
  border-radius: var(--ftr-radius);
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}

.ftr-dep:hover {
  border-color: #3a3a3a;
}

.ftr-dep__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ftr-dep__tour {
  font-size: 14px;
  font-weight: 600;
  color: var(--ftr-text);
}

.ftr-dep__dates {
  font-size: 15px;
  font-weight: 500;
  color: var(--ftr-text);
}

.ftr-dep__duration {
  font-size: 12px;
  color: var(--ftr-text-muted);
}

.ftr-dep__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 260px;
  justify-content: flex-end;
}

/* ─── Availability badges ────────────────────────────────────────────────── */
.ftr-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-align: center;
  min-width: 120px;
}

.ftr-badge--available {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.ftr-badge--limited {
  background: rgba(245, 197, 24, 0.15);
  color: var(--ftr-yellow);
  border: 1px solid rgba(245, 197, 24, 0.3);
}

.ftr-badge--guaranteed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.ftr-badge--sold-out {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ftr-badge--on-request {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

/* ─── CTA Button ─────────────────────────────────────────────────────────── */
.ftr-cta {
  display: inline-block;
  padding: 7px 18px;
  background: var(--ftr-yellow);
  color: #111 !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  text-align: center;
  min-width: 120px;
}

.ftr-cta:hover {
  opacity: 0.88;
}

.ftr-cta--disabled {
  background: var(--ftr-border);
  color: var(--ftr-text-muted) !important;
  cursor: default;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 7px 18px;
  white-space: nowrap;
  text-align: center;
  min-width: 120px;
}

/* ─── Empty / Error states ───────────────────────────────────────────────── */
.ftr-empty,
.ftr-error {
  padding: 32px;
  text-align: center;
  color: var(--ftr-text-muted);
  font-size: 14px;
  background: var(--ftr-bg-card);
  border: 1px solid var(--ftr-border);
  border-radius: var(--ftr-radius);
}

.ftr-no-results {
  padding: 24px;
  text-align: center;
  color: var(--ftr-text-muted);
  font-size: 14px;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ftr-dep {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ftr-dep__meta {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }
}
