/* ============================================================
   DEPARTO FRONTEND — v2.0
   ============================================================ */

/* ── SEARCH BOX ── */
.departo-search-outer {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.d-test-banner {
  background: #7c3aed;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: center;
}

.departo-search-box {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 4px 32px rgba(11,31,58,.10);
}

/* Tabs */
.d-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.d-tab {
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: none;
  color: #9CA3AF;
  font-family: inherit;
  transition: all .15s;
}

.d-tab:hover { background: #F5F2ED; color: #111827; }
.d-tab-on, .d-tab.d-tab-on { background: #0B1F3A !important; color: #fff !important; }

/* Fields row */
.d-fields {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 4px 6px;
}

.d-field {
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
}

.d-field-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #9CA3AF;
  margin-bottom: 5px;
}

.d-select,
.d-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.d-select { cursor: pointer; }

.d-field-sep {
  width: 1px;
  background: #E5E7EB;
  margin: 8px 0;
  flex-shrink: 0;
}

.d-search-btn {
  background: #2F7BE8;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all .15s;
  flex-shrink: 0;
  margin: 4px;
  align-self: center;
}

.d-search-btn:hover {
  background: #1a5ccc;
  transform: translateY(-1px);
}

/* Mobile stacked layout */
@media (max-width: 680px) {
  .d-fields {
    flex-direction: column;
    padding: 6px;
  }
  .d-field-sep { width: 100%; height: 1px; margin: 0; }
  .d-search-btn { width: 100%; margin: 8px 4px 4px; padding: 14px; }
}

/* ── RESULTS ── */
#d-results { margin-top: 24px; }

.d-empty {
  text-align: center;
  padding: 48px 24px;
  color: #9CA3AF;
  font-family: inherit;
}

.d-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.d-results-count {
  font-size: 14px;
  color: #6B7280;
  font-family: inherit;
}

.d-test-note {
  font-size: 11px;
  color: #7c3aed;
  font-weight: 600;
  background: #fdf4ff;
  padding: 2px 7px;
  border-radius: 100px;
}

.d-sort-select {
  font-size: 13px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  cursor: pointer;
}

.d-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Result card */
.d-result-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  display: flex;
  align-items: stretch;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}

.d-result-card:hover {
  border-color: #2F7BE8;
  box-shadow: 0 4px 24px rgba(47,123,232,.10);
}

.d-result-left {
  flex: 1;
  padding: 18px 20px;
  min-width: 0;
}

.d-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.d-result-name {
  font-size: 16px;
  font-weight: 700;
  color: #0B1F3A;
  margin-bottom: 8px;
}

.d-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6B7280;
}

.d-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.d-feature {
  font-size: 11px;
  background: #F5F2ED;
  color: #4B5563;
  padding: 3px 9px;
  border-radius: 100px;
}

.d-result-right {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  border-left: 1px solid #E5E7EB;
  min-width: 160px;
  flex-shrink: 0;
}

.d-price {
  font-size: 28px;
  font-weight: 800;
  color: #0B1F3A;
  line-height: 1;
  margin-bottom: 12px;
}

.d-price span {
  font-size: 12px;
  font-weight: 400;
  color: #9CA3AF;
  display: block;
  margin-top: 3px;
}

.d-book-btn {
  background: #2F7BE8;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}

.d-book-btn:hover { background: #1a5ccc; }

.d-free-cancel {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 8px;
}

@media (max-width: 580px) {
  .d-result-card { flex-direction: column; }
  .d-result-right { border-left: none; border-top: 1px solid #E5E7EB; align-items: stretch; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .d-price { margin-bottom: 0; font-size: 22px; }
  .d-book-btn { width: auto; }
}

/* ── AIRPORT GRID ── */
.departo-airport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.departo-airport-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: all .2s;
}

.departo-airport-card:hover {
  border-color: #2F7BE8;
  box-shadow: 0 4px 20px rgba(47,123,232,.10);
  transform: translateY(-2px);
  text-decoration: none;
}

.dac-code { font-size: 22px; font-weight: 800; color: #2F7BE8; line-height: 1; margin-bottom: 4px; }
.dac-name { font-size: 13px; color: #6B7280; font-weight: 500; }
.dac-services { display: flex; gap: 5px; margin-top: 10px; }
.dac-dot { width: 7px; height: 7px; border-radius: 50%; }
.dac-p { background: #2F7BE8; }
.dac-h { background: #E85D3A; }
.dac-l { background: #C9A96E; }

/* ── HIDE PAGE TITLE on full width pages ── */
.page-template-full-width .entry-header,
.page-template-full-width .entry-title,
body.page .entry-header { display: none; }

/* ── EMAIL CAPTURE MODAL ──────────────────────────── */
.departo-modal-overlay{position:fixed;inset:0;background:rgba(11,31,58,.7);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}
.departo-modal{background:#fff;border-radius:20px;padding:36px;max-width:440px;width:100%;text-align:center;position:relative;box-shadow:0 24px 80px rgba(0,0,0,.25)}
.departo-modal-close{position:absolute;top:14px;right:16px;background:none;border:none;font-size:18px;cursor:pointer;color:#9CA3AF;line-height:1;padding:4px}
.departo-modal-close:hover{color:#0B1F3A}
.departo-modal-icon{font-size:40px;margin-bottom:12px}
.departo-modal h3{font-size:22px;font-weight:800;color:#0B1F3A;margin:0 0 8px}
.departo-modal p{font-size:14px;color:#6B7280;line-height:1.65;margin:0 0 16px}
.departo-modal-price{background:#F5F2ED;border-radius:10px;padding:10px 16px;font-size:24px;font-weight:800;color:#0B1F3A;margin-bottom:16px;display:inline-block}
.departo-modal-input{width:100%;padding:12px 16px;border:1.5px solid #E5E7EB;border-radius:10px;font-size:15px;font-family:inherit;margin-bottom:10px;box-sizing:border-box;transition:border-color .15s}
.departo-modal-input:focus{outline:none;border-color:#2F7BE8}
.dep-capture-btn{width:100%;padding:14px;background:#2F7BE8;color:#fff;border:none;border-radius:100px;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit;transition:background .15s;margin-bottom:10px}
.dep-capture-btn:hover{background:#1a5ccc}
.dep-capture-btn:disabled{background:#93C5FD;cursor:not-allowed}
.dep-skip-btn{background:none;border:none;color:#9CA3AF;font-size:12px;cursor:pointer;font-family:inherit;text-decoration:underline;padding:0}
.dep-skip-btn:hover{color:#6B7280}

/* ── RESULTS PANEL ───────────────────────────────── */
.departo-results-panel{margin:32px 0;padding:0}
.departo-results-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px}
.departo-results-header h3{font-size:18px;font-weight:800;color:#0B1F3A;margin:0}
.departo-results-grid{display:flex;flex-direction:column;gap:12px}
.departo-result-card{background:#fff;border:1.5px solid #E5E7EB;border-radius:14px;padding:20px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;transition:border-color .15s,box-shadow .15s}
.departo-result-card:hover{border-color:#2F7BE8;box-shadow:0 4px 20px rgba(47,123,232,.1)}
.drc-name{font-size:17px;font-weight:800;color:#0B1F3A;margin-bottom:4px}
.drc-type{font-size:12px;font-weight:600;color:#6B7280;margin-bottom:8px}
.drc-meta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.drc-meta span{font-size:13px;color:#6B7280}
.drc-meta strong{color:#0B1F3A;font-weight:700}
.drc-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 10px;border-radius:100px;margin-right:6px}
.badge-green{background:#f0fdf4;color:#16a34a}
.badge-gold{background:#fdf6ec;color:#92400e}
.badge-blue{background:#eff6ff;color:#1d4ed8}
.badge-coral{background:#fef2f2;color:#E85D3A}
.drc-free-cancel{font-size:11px;color:#16a34a;font-weight:600}
.drc-price-col{text-align:right;min-width:120px}
.drc-price{font-size:28px;font-weight:900;color:#0B1F3A;line-height:1}
.drc-price-label{font-size:11px;color:#9CA3AF;margin-bottom:10px}
.departo-book-btn{display:block;background:#E85D3A;color:#fff;border:none;border-radius:100px;padding:11px 22px;font-size:14px;font-weight:800;cursor:pointer;font-family:inherit;text-align:center;text-decoration:none;transition:background .15s;white-space:nowrap}
.departo-book-btn:hover{background:#c94a2a}
.drc-rating{display:flex;align-items:center;gap:4px;margin-top:6px;font-size:12px;color:#6B7280}
.drc-stars{color:#F59E0B;font-size:13px}

/* Loading */
.departo-loading{text-align:center;padding:48px 20px;color:#6B7280}
.departo-spinner{width:40px;height:40px;border:3px solid #E5E7EB;border-top-color:#2F7BE8;border-radius:50%;animation:dep-spin .7s linear infinite;margin:0 auto 16px}
@keyframes dep-spin{to{transform:rotate(360deg)}}

/* Sort */
.departo-sort-wrap{display:flex;align-items:center;gap:8px;font-size:13px;color:#6B7280}
.departo-sort-wrap select{padding:6px 10px;border:1px solid #E5E7EB;border-radius:8px;font-size:13px;font-family:inherit;color:#0B1F3A}

/* Features (lounges) */
.drc-features{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.drc-feature{background:#F3F4F6;color:#6B7280;font-size:11px;font-weight:600;padding:3px 9px;border-radius:100px}

@media(max-width:600px){
    .departo-result-card{grid-template-columns:1fr;gap:10px}
    .drc-price-col{text-align:left}
    .drc-price{font-size:24px}
}

/* ── DATEPICKER ──────────────────────────────────── */
#d-datepicker{background:#fff;border:1.5px solid #E5E7EB;border-radius:14px;padding:16px;min-width:280px;box-shadow:0 8px 30px rgba(0,0,0,.12);z-index:9999}
.d-datepicker-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.d-dp-title{font-weight:700;font-size:14px;color:#0B1F3A}
.d-dp-nav{background:none;border:1px solid #E5E7EB;border-radius:6px;width:28px;height:28px;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;color:#6B7280}
.d-dp-nav:hover{background:#F3F4F6}
.d-dp-days-header{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11px;font-weight:700;color:#9CA3AF;margin-bottom:6px}
.d-dp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.d-dp-day{text-align:center;padding:7px 4px;font-size:13px;border-radius:6px;cursor:pointer;color:#0B1F3A;font-weight:500}
.d-dp-day:hover:not(.d-dp-past){background:#E8F1FD;color:#2F7BE8}
.d-dp-sel{background:#2F7BE8!important;color:#fff!important;border-radius:6px}
.d-dp-range{background:#E8F1FD;color:#2F7BE8}
.d-dp-past{cursor:default;color:#D1D5DB}
.d-dp-past-num{color:#D1D5DB}
