/*
 CDEC Consult · Airbnb Portal 1.2.0
 Brand matches the supplied CDEC header screenshot:
 navy #071b33 · gold #d4a72c · white #ffffff.
 Font: Poppins / Arial / sans-serif.
 Scoped to plugin components: does NOT change the WordPress theme.
*/
.cdec-portal,
#cdec-guest-dashboard {
  --cdec-navy: #071b33;
  --cdec-navy-light: #112b48;
  --cdec-gold: #d4a72c;
  --cdec-gold-light: #f9f0d6;
  --cdec-ivory: #fbfcfe;
  --cdec-text: #172942;
  --cdec-muted: #64748b;
  --cdec-border: #e0e7ee;
  --ink: var(--cdec-text);
  --forest: var(--cdec-navy);
  --mint: var(--cdec-gold-light);
  --sand: #f6f8fb;
  --gold: var(--cdec-gold);
  --line: var(--cdec-border);
  --muted: var(--cdec-muted);
  font-family: 'Poppins', Arial, sans-serif !important;
  color: var(--cdec-text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.cdec-portal *,
.cdec-portal *::before,
.cdec-portal *::after,
#cdec-guest-dashboard *,
#cdec-guest-dashboard *::before,
#cdec-guest-dashboard *::after { box-sizing: border-box; font-family: inherit; }
.cdec-portal { max-width: 1280px; padding: 16px 10px 64px; }
.cdec-portal a { color: var(--cdec-navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cdec-portal a:hover, #cdec-guest-dashboard a:hover { color: #896410; }
.cdec-portal h1, .cdec-portal h2, .cdec-portal h3,
#cdec-guest-dashboard h1, #cdec-guest-dashboard h2, #cdec-guest-dashboard h3 {
  color: var(--cdec-navy); font-family: 'Poppins', Arial, sans-serif;
  letter-spacing: -.038em; line-height: 1.23; font-weight: 600;
}
.cdec-portal h1, #cdec-guest-dashboard h1 { font-weight: 600; }
.cdec-portal h2, #cdec-guest-dashboard h2 { font-weight: 600; }
.cdec-portal h3, #cdec-guest-dashboard h3 { font-weight: 500; }

/* Compact introduction: slim motion ribbon + editorial title, no tall hero card.
   Main forms, listings, and booking details appear directly below this header. */
.cdec-portal .cdec-intro,
#cdec-guest-dashboard .cdec-intro {
  width: 100%; margin: 0 0 12px; background: transparent;
  box-shadow: none; border: none; border-radius: 0;
}
.cdec-portal .cdec-motionbar,
#cdec-guest-dashboard .cdec-motionbar {
  width: 100%; position: relative; overflow: hidden; height: 34px;
  background: #071b33; color: #fff;
  border-bottom: 2px solid #d4a72c;
}
.cdec-portal .cdec-motionbar::before,
#cdec-guest-dashboard .cdec-motionbar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 2px; width: 5px;
  background: #d4a72c; z-index: 2;
}
.cdec-portal .cdec-motionbar::after,
#cdec-guest-dashboard .cdec-motionbar::after {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 56px;
  background: linear-gradient(90deg, transparent, #071b33); pointer-events: none; z-index: 1;
}
.cdec-portal .cdec-motion-track,
#cdec-guest-dashboard .cdec-motion-track {
  display: flex; align-items: center; height: 100%; width: max-content;
  animation: cdec-motion-scroll 36s linear infinite;
  will-change: transform;
}
.cdec-portal .cdec-motion-set,
#cdec-guest-dashboard .cdec-motion-set {
  display: flex; align-items: center; height: 100%; flex: 0 0 auto;
  gap: 34px; padding-right: 34px;
}
.cdec-portal .cdec-motion-item,
#cdec-guest-dashboard .cdec-motion-item {
  display: inline-flex; align-items: center; white-space: nowrap; gap: 11px;
  font-size: 9px; letter-spacing: .19em; text-transform: uppercase;
  font-weight: 500; line-height: 1; color: #fff;
}
.cdec-portal .cdec-motion-diamond,
#cdec-guest-dashboard .cdec-motion-diamond {
  display: inline-block; width: 6px; height: 6px; flex: 0 0 6px;
  transform: rotate(45deg); border: 1.4px solid #d4a72c;
}
@keyframes cdec-motion-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cdec-portal .cdec-intro-body,
#cdec-guest-dashboard .cdec-intro-body {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 85px; border-bottom: 1px solid #e0e7ee;
  padding: 13px 2px 15px;
}
.cdec-portal .cdec-intro-title,
#cdec-guest-dashboard .cdec-intro-title { flex: 1 1 54%; min-width: 0; }
.cdec-portal .cdec-intro-kicker,
#cdec-guest-dashboard .cdec-intro-kicker {
  display: block; margin: 0 0 5px; color: #987016;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .15em; line-height: 1.5;
}
.cdec-portal .cdec-intro h1,
#cdec-guest-dashboard .cdec-intro h1 {
  margin: 0; color: #071b33 !important; font: 600 clamp(20px, 2.8vw, 31px)/1.22 'Poppins', Arial, sans-serif !important;
  letter-spacing: -.042em; max-width: none;
}
.cdec-portal .cdec-intro-desc,
#cdec-guest-dashboard .cdec-intro-desc {
  flex: 1 1 40%; max-width: 465px; color: #536781 !important;
  font: 400 12px/1.65 'Poppins', Arial, sans-serif;
  margin: 0; padding-left: 16px; border-left: 2px solid #d4a72c;
}
.cdec-portal .cdec-steps { margin: 12px 0 11px; line-height: 1.8; }
.cdec-portal .cdec-steps + .cdec-form,
.cdec-portal .cdec-intro + .cdec-form { margin-top: 10px; }
.cdec-portal .cdec-booking-toolbar { margin: 8px 0 12px; }
.cdec-portal .cdec-intro + .cdec-filter,
.cdec-portal .cdec-booking-toolbar + .cdec-filter { margin-top: 0; }
#cdec-guest-dashboard .cdecg-auth { max-width: 690px; margin: 12px auto 0; }
#cdec-guest-dashboard .cdecg-auth h2 { margin-top: 4px; }
#cdec-guest-dashboard .cdec-intro + .cdecg-toolbar { margin-top: 10px; }
@media (max-width: 700px) {
  .cdec-portal .cdec-intro-body, #cdec-guest-dashboard .cdec-intro-body {
    min-height: 0; padding: 11px 0 13px; display: block;
  }
  .cdec-portal .cdec-intro h1, #cdec-guest-dashboard .cdec-intro h1 {
    font-size: clamp(21px, 5.4vw, 27px) !important;
  }
  .cdec-portal .cdec-intro-desc, #cdec-guest-dashboard .cdec-intro-desc {
    max-width: none; padding: 0; border: 0; margin: 6px 0 0;
    font-size: 11px; line-height: 1.5;
  }
  .cdec-portal .cdec-motionbar, #cdec-guest-dashboard .cdec-motionbar { height: 30px; }
  .cdec-portal .cdec-motion-item, #cdec-guest-dashboard .cdec-motion-item { font-size: 8px; }
  .cdec-portal .cdec-steps { margin: 8px 0; font-size: 11px; }
  #cdec-guest-dashboard .cdecg-auth { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cdec-portal .cdec-motion-track, #cdec-guest-dashboard .cdec-motion-track {
    animation: none !important; will-change: auto;
  }
}

.cdec-portal .cdec-numeral,
#cdec-guest-dashboard .cdecg-kicker { color: #97701b; letter-spacing: .13em; font-weight: 600; }
.cdec-portal .cdec-steps { font-size: 12px; color: var(--cdec-muted); gap: 9px; }
.cdec-portal .cdec-steps b { color: var(--cdec-navy); font-weight: 600; }
.cdec-portal .cdec-section { margin-top: 35px; }

/* Cards and listing catalogue */
.cdec-portal .cdec-card,
#cdec-guest-dashboard .cdecg-auth,
#cdec-guest-dashboard .cdecg-booking {
  background: #fff; border: 1px solid var(--cdec-border); border-radius: 16px;
  box-shadow: 0 9px 32px rgba(10,35,64,.05);
}
.cdec-portal .cdec-card { padding: 24px; }
.cdec-portal .cdec-staycard { padding: 0; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.cdec-portal .cdec-staycard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(7,27,51,.12); }
.cdec-portal .cdec-cover { aspect-ratio: 1.58; object-fit: cover; }
.cdec-portal .cdec-staybody { padding: 23px; }
.cdec-portal .cdec-staybody h3 { font-size: 19px; line-height: 1.4; }
.cdec-portal .cdec-noimage { background: linear-gradient(140deg, #dce6ef, #f7e8c2); color: #334b64; }
.cdec-portal .cdec-price { color: var(--cdec-navy); font-size: 22px; font-weight: 600; }
.cdec-portal .cdec-price small { font-size: 11px; color: var(--cdec-muted); }
.cdec-portal .cdec-option-body { border-color: var(--cdec-border); box-shadow: 0 8px 22px rgba(7,27,51,.035); }
.cdec-portal .cdec-option input:checked + .cdec-option-body {
  border-color: var(--cdec-gold); background: #fffbef;
  box-shadow: 0 0 0 3px rgba(212,167,44,.13);
}
.cdec-portal .cdec-option strong { color: var(--cdec-navy); font-weight: 600; }
.cdec-portal .cdec-option small { color: var(--cdec-muted); }
.cdec-portal .cdec-option input:focus-visible + .cdec-option-body { outline-color: var(--cdec-gold); }

/* Forms: understated clean inputs */
.cdec-portal .cdec-form {
  background: #fff; border: 1px solid var(--cdec-border);
  border-radius: 17px; box-shadow: 0 9px 35px rgba(7,27,51,.04);
}
.cdec-portal label.cdec-field, .cdec-portal .cdec-filter label,
#cdec-guest-dashboard label { color: #243b56; font-size: 12px; font-weight: 600; }
.cdec-portal .cdec-field input,
.cdec-portal .cdec-field select,
.cdec-portal .cdec-field textarea,
.cdec-portal .cdec-filter input,
.cdec-portal .cdec-filter select,
#cdec-guest-dashboard input {
  border: 1px solid #cad5e1; background: #fff; color: var(--cdec-navy);
  border-radius: 9px; font: 400 13px/1.6 'Poppins', Arial, sans-serif;
  padding: 12px 14px; min-height: 47px; width: 100%; box-shadow: none;
}
.cdec-portal .cdec-field textarea { min-height: 120px; resize: vertical; }
.cdec-portal input:focus, .cdec-portal textarea:focus,
.cdec-portal select:focus, #cdec-guest-dashboard input:focus {
  outline: 2px solid rgba(212,167,44,.58); outline-offset: 1px;
  border-color: var(--cdec-gold); box-shadow: 0 0 0 4px rgba(212,167,44,.09);
}
.cdec-portal .cdec-filter { border-radius: 13px; background: #f4f7fa; border: 1px solid #e2eaf1; padding: 18px; }
.cdec-portal .cdec-help, .cdec-portal .cdec-muted { color: var(--cdec-muted); }
.cdec-portal .cdec-check { color: var(--cdec-muted); }
.cdec-portal .cdec-check input { accent-color: var(--cdec-gold); }

/* Actions */
.cdec-portal button,
.cdec-portal .cdec-btn,
#cdec-guest-dashboard button:not(.cdecg-textbutton) {
  background: var(--cdec-navy); color: #fff !important;
  border: 1px solid var(--cdec-navy); border-radius: 9px;
  font: 600 12px/1.4 'Poppins', Arial, sans-serif;
  letter-spacing: .005em; padding: 13px 19px; box-shadow: none;
  text-decoration: none; transition: background .18s, transform .18s, border-color .18s;
}
.cdec-portal button:hover,
.cdec-portal .cdec-btn:hover,
#cdec-guest-dashboard button:not(.cdecg-textbutton):hover {
  background: #193b5e; border-color: #193b5e; color: #fff !important;
  transform: translateY(-1px);
}
.cdec-portal button:focus-visible, .cdec-portal a:focus-visible,
#cdec-guest-dashboard button:focus-visible, #cdec-guest-dashboard a:focus-visible {
  outline: 3px solid var(--cdec-gold); outline-offset: 3px;
}
.cdec-portal .cdec-btn.alt,
.cdec-portal button.alt,
#cdec-guest-dashboard .cdecg-logout {
  color: var(--cdec-navy) !important; background: #fff;
  border: 1px solid #bfccd9;
}
.cdec-portal .cdec-btn.alt:hover,
.cdec-portal button.alt:hover,
#cdec-guest-dashboard .cdecg-logout:hover {
  background: #f5f0e3; border-color: var(--cdec-gold); color: var(--cdec-navy) !important;
}
.cdec-portal button.warn { background: #a44742; border-color: #a44742; }
.cdec-portal button.warn:hover { background: #8a3431; border-color: #8a3431; }
.cdec-portal .cdec-small { padding: 9px 11px; font-size: 11px; }
.cdec-portal .cdec-login .submit input { background: var(--cdec-navy); border-radius: 8px; }

/* Data, chips, status banners */
.cdec-portal .cdec-metric, #cdec-guest-dashboard .cdecg-metrics > div {
  background: #f5f8fc; border: 1px solid #e3eaf2;
  border-radius: 13px; padding: 21px;
}
.cdec-portal .cdec-metric { border-top: 3px solid var(--cdec-gold); }
.cdec-portal .cdec-metric strong,
#cdec-guest-dashboard .cdecg-metrics strong { font-weight: 600; color: var(--cdec-navy); }
.cdec-portal .cdec-metric small, #cdec-guest-dashboard .cdecg-metrics span { color: var(--cdec-muted); }
.cdec-portal .cdec-chip { color: #143954; background: #e8eff5; font-weight: 600; font-size: 10px; }
.cdec-portal .cdec-chip.pending,
.cdec-portal .cdec-chip.requested,
#cdec-guest-dashboard .cdecg-pill { background: #fff1c7; color: #78520b; }
.cdec-portal .cdec-chip.declined,
.cdec-portal .cdec-chip.cancelled,
#cdec-guest-dashboard .cdecg-pill.cdecg-declined,
#cdec-guest-dashboard .cdecg-pill.cdecg-cancelled { background: #fde9e8; color: #943931; }
#cdec-guest-dashboard .cdecg-pill.cdecg-confirmed { background: #e3f3ed; color: #15533b; }
.cdec-portal .cdec-note, #cdec-guest-dashboard .cdecg-help {
  background: #f8f6ee; color: #5e5b4b; border-left: 3px solid var(--cdec-gold); border-radius: 10px;
}
.cdec-portal .cdec-alert-ok, #cdec-guest-dashboard .cdecg-notice {
  background: #eaf5f0; border: 1px solid #c3e3d5; color: #1d5842;
}
.cdec-portal .cdec-alert-error { background: #fff0ec; border-color: #f3cbc2; color: #923f34; }
.cdec-portal .cdec-tablewrap { border-color: var(--cdec-border); border-radius: 12px; }
.cdec-portal table th { background: #eff4f9; color: #183451; font-weight: 600; }
.cdec-portal table td { border-bottom-color: var(--cdec-border); }
.cdec-portal .cdec-empty { border-color: #bccddd; background: #f8fafc; color: var(--cdec-muted); }
.cdec-portal .cdec-login { background: #f4f7fb; border: 1px solid var(--cdec-border); }
.cdec-portal .cdec-admin-property { border-bottom-color: #dfe8ef; }

/* Existing booking CTA for guests returning to the directory. */
.cdec-portal .cdec-booking-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 15px 20px;
  margin: 0 0 22px; border: 1px solid #e6d9ac;
  border-radius: 12px; background: #fffaf0;
  font-size: 12px; color: #5f563e;
}
.cdec-portal .cdec-booking-toolbar a { font-weight: 600; color: #0a2b4a; text-decoration: none; }

/* Guest booking portal */
#cdec-guest-dashboard { max-width: 1170px; padding: 16px 10px 65px; margin: 0 auto; }
/* Guest portal now shares the compact introduction. */
#cdec-guest-dashboard .cdecg-overline { font-weight: 600; }
#cdec-guest-dashboard .cdecg-kicker { font-size: 10px; color: #8e6818; }
#cdec-guest-dashboard .cdecg-auth { padding: clamp(20px,4vw,38px); }
#cdec-guest-dashboard .cdecg-auth h2 { font-size: clamp(23px,3vw,32px); }
#cdec-guest-dashboard input { min-height: 50px; font-size: 14px; }
#cdec-guest-dashboard button:not(.cdecg-textbutton) { min-height: 46px; }
#cdec-guest-dashboard .cdecg-textbutton {
  background: transparent; color: var(--cdec-navy); border: none;
  text-decoration: underline; font: 500 13px 'Poppins', Arial, sans-serif;
  padding: 0; cursor: pointer;
}
#cdec-guest-dashboard .cdecg-textbutton:hover { background: transparent; color: #896410; }
#cdec-guest-dashboard .cdecg-toolbar {
  background: #f5f8fc; border: 1px solid var(--cdec-border); border-radius: 13px;
  padding: 17px 20px;
}
#cdec-guest-dashboard .cdecg-toolbar strong { color: var(--cdec-navy); font-weight: 600; }
#cdec-guest-dashboard .cdecg-metrics { gap: 15px; }
#cdec-guest-dashboard .cdecg-metrics > div { border-top: 3px solid var(--cdec-gold); }
#cdec-guest-dashboard .cdecg-booking { margin-bottom: 16px; }
#cdec-guest-dashboard .cdecg-top h3 { font-weight: 600; }
#cdec-guest-dashboard .cdecg-details { border-color: var(--cdec-border); }
#cdec-guest-dashboard .cdecg-details strong { color: var(--cdec-navy); font-weight: 600; }
#cdec-guest-dashboard .cdecg-explainer,
#cdec-guest-dashboard .cdecg-payment,
#cdec-guest-dashboard .cdecg-caption,
#cdec-guest-dashboard .cdecg-footnote { color: var(--cdec-muted); }
#cdec-guest-dashboard .cdecg-pages a { color: var(--cdec-navy); border-color: var(--cdec-border); }
#cdec-guest-dashboard .cdecg-pages a[aria-current="page"] { background: var(--cdec-navy); color: #fff; }
#cdec-guest-dashboard .cdecg-empty { border-color: #bdcede; background: #f7f9fc; }
#cdec-guest-dashboard .cdecg-help { margin-top: 30px; padding: 20px 23px; }
#cdec-guest-dashboard .cdecg-help strong { color: var(--cdec-navy); }

@media (max-width: 900px) {
  .cdec-portal .cdec-grid, .cdec-portal .cdec-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cdec-portal .cdec-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .cdec-portal, #cdec-guest-dashboard { padding: 8px 14px 40px; }
  .cdec-portal .cdec-grid, .cdec-portal .cdec-grid.two,
  .cdec-portal .cdec-filter, .cdec-portal .cdec-fields { grid-template-columns: 1fr; }
  .cdec-portal .cdec-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .cdec-portal .cdec-metric { padding: 15px; }
  .cdec-portal .cdec-metric strong { font-size: 20px; }
  .cdec-portal .cdec-form { padding: 21px 18px; }
  .cdec-portal .cdec-steps { display: block; line-height: 2.2; }
  #cdec-guest-dashboard .cdecg-details { grid-template-columns: 1fr 1fr; }
  #cdec-guest-dashboard .cdecg-metrics { gap: 9px; }
  #cdec-guest-dashboard .cdecg-metrics > div { padding: 15px; }
  #cdec-guest-dashboard .cdecg-metrics strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cdec-portal .cdec-staycard, .cdec-portal button,
  #cdec-guest-dashboard button { transition: none; transform: none !important; }
}
