/* =========================================================================
   Soleil Levant skin for "Tour Booking for WooCommerce" (Kijo Digital)
   Kijo Digital · concept build

   HOW TO INSTALL IN WORDPRESS
   ---------------------------
   1. WooCommerce → Tour Booking → Settings
         Accent colour   #005EC9
         Text on accent  #FFFFFF
      That alone recolours most of the plugin, because it ships neutral and
      reads --ktb-accent / --ktb-on from those two settings.
   2. Load this file AFTER the plugin's own assets/tour.css and
      assets/enquiry.css. Either:
         a) paste it into Elementor → Site Settings → Custom CSS, or
         b) enqueue it from the child theme with 'ktb' and 'ktb-enquiry'
            listed as dependencies:

            add_action( 'wp_enqueue_scripts', function () {
                wp_enqueue_style(
                    'soleil-ktb',
                    get_stylesheet_directory_uri() . '/css/ktb-skin.css',
                    array( 'ktb', 'ktb-enquiry' ),
                    '1.0'
                );
            }, 20 );

   Nothing here touches the plugin's own files, so it survives plugin updates.
   Every rule below only restyles; no layout the plugin depends on is changed.
   ========================================================================= */

.ktb,
.ktb-enq,
.ktb-plan {
  --ktb-accent: #005EC9;
  --ktb-on: #fff;
  --ktb-ink: #1F2328;
  --ktb-muted: #6B7685;
  --ktb-line: #DCE4EE;
  --ktb-field: #F7FAFD;
  --ktb-soft: #E4EEFB;
  --ktb-sun: #FFD42A;
  --ktb-r: 12px;
  font-family: var(--f-text, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15.5px;
}

/* The currency switcher is hidden: Soleil quotes in USD only.
   In WordPress, also leave "Extra currencies" empty under
   WooCommerce → Tour Booking → Settings so it is never rendered. */
.ktb .ktb-cur, .ktb-cur { display: none !important; }

/* ------------------------------------------------------------------ card */
.ktb-card {
  border: 1px solid var(--ktb-line);
  border-radius: 22px;
  box-shadow: 0 10px 30px -12px rgba(0, 34, 77, .28);
  padding: 24px;
}

/* price header — follows the theme's display face (--f-display) */
.ktb-head strong,
.ktb-head .ktb-money {
  font-family: var(--f-display, "Inter"), system-ui, sans-serif;
  font-style: var(--f-display-style, normal);
  font-weight: var(--f-display-weight, 700);
  letter-spacing: var(--f-display-track, -.02em);
  font-size: 29px;
  color: var(--ktb-ink);
  letter-spacing: -.01em;
}
.ktb-head { gap: 11px; }
.ktb-tag svg { width: 22px; height: 22px; fill: var(--ktb-accent); }
.ktb-head small { color: var(--ktb-muted); font-size: 13.5px; }
.ktb-head del { color: var(--ktb-muted); }

/* badges */
.ktb-badges { margin-top: 12px; gap: 7px; }
.ktb-badges > span {
  background: var(--ktb-soft);
  color: #00448F;
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 12px;
  letter-spacing: .01em;
}
.ktb-badges > span:first-child {
  background: var(--ktb-sun);
  color: #00224D;
}

/* ------------------------------------------------------------------ tabs */
.ktb-tabs { border-bottom: 1px solid var(--ktb-line); margin: 18px 0 16px; }
.ktb .ktb-tabs button {
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 6px;
  border-bottom-width: 3px;
  transition: color .2s, border-color .2s;
}
.ktb .ktb-tabs button.is-on { color: var(--ktb-accent); border-bottom-color: var(--ktb-accent); }

/* ---------------------------------------------------------------- fields */
.ktb .ktb-field > label,
.ktb-sec-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4A5768;
}
.ktb-sec-title { font-size: 13px; letter-spacing: .05em; }
.ktb-req { color: #C0392B; }
.ktb-opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

.ktb input[type=text],
.ktb input[type=email],
.ktb input[type=tel],
.ktb input[type=number],
.ktb input[type=date],
.ktb textarea,
.ktb .ktb-pick {
  min-height: 48px;
  border-radius: 10px;
  border-width: 1.5px;
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ktb input:focus,
.ktb textarea:focus,
.ktb .ktb-pick:focus {
  border-color: var(--ktb-accent);
  box-shadow: 0 0 0 4px rgba(0, 94, 201, .14);
  background: #fff;
}
.ktb-pick svg { fill: var(--ktb-accent); }

/* -------------------------------------------------------------- calendar */
.ktb-pop {
  border-radius: 16px;
  border-color: var(--ktb-line);
  box-shadow: 0 24px 50px -18px rgba(0, 34, 77, .4);
  padding: 16px;
}
.ktb-cal-title { font-weight: 700; color: var(--ktb-ink); }
.ktb .ktb-nav:hover { border-color: var(--ktb-accent); color: var(--ktb-accent); }
.ktb .ktb-day.is-on { background: var(--ktb-soft); color: #00336F; }
.ktb .ktb-day.is-on:hover { background: var(--ktb-accent); color: #fff; }
.ktb .ktb-day.is-sel,
.ktb .ktb-day.is-sel:hover { background: var(--ktb-accent); color: #fff; }
.ktb .ktb-day.is-today { box-shadow: inset 0 0 0 2px var(--ktb-sun); }

/* ----------------------------------------------------------- time slots */
.ktb .ktb-slot { border-radius: 10px; border-width: 1.5px; }
.ktb .ktb-slot.is-on { border-color: var(--ktb-accent); background: var(--ktb-soft); }
.ktb-slot b { font-weight: 600; }

/* ---------------------------------------------------------------- guests */
.ktb-guests { border-radius: 10px; border-width: 1.5px; padding: 2px 14px; }
.ktb-g { padding: 11px 0; }
.ktb-g b { font-weight: 600; font-size: 14.5px; color: var(--ktb-ink); }
.ktb .ktb-step button {
  width: 34px; height: 34px;
  border-width: 1.5px;
  font-size: 19px;
  color: var(--ktb-accent);
  transition: border-color .2s, background .2s, color .2s;
}
.ktb .ktb-step button:hover:not([disabled]) {
  border-color: var(--ktb-accent);
  background: var(--ktb-accent);
  color: #fff;
}
.ktb-step span { font-weight: 700; font-size: 16px; }

/* ---------------------------------------------------------------- extras */
.ktb .ktb-x { border-radius: 10px; border-width: 1.5px; }
.ktb .ktb-x:has(input:checked) { border-color: var(--ktb-accent); background: var(--ktb-soft); }

/* ----------------------------------------------------------------- phone */
.ktb-cc { border-radius: 10px; border-width: 1.5px; min-height: 48px; }

/* ---------------------------------------------------------------- totals */
.ktb-total { border-top: 1px solid var(--ktb-line); padding-top: 14px; }
.ktb-line { color: #4A5768; font-size: 14.5px; }
.ktb-sum {
  font-size: 15px;
  font-weight: 600;
  align-items: baseline;
  border-top: 1px dashed var(--ktb-line);
  padding-top: 10px;
  margin-top: 10px;
  color: var(--ktb-muted);
}
.ktb-sum span:last-child {
  font-family: var(--f-display, "Inter"), system-ui, sans-serif;
  font-style: var(--f-display-style, normal);
  font-weight: var(--f-display-weight, 700);
  letter-spacing: var(--f-display-track, -.02em);
  font-size: 25px;
  color: var(--ktb-ink);
}

/* --------------------------------------------------------------- buttons */
.ktb .ktb-btn {
  min-height: 54px;
  border-radius: 999px;          /* pill, matching the theme's .btn */
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;          /* the plugin uppercases by default */
  box-shadow: 0 8px 20px -10px rgba(0, 94, 201, .9);
  transition: background .25s, box-shadow .25s, transform .2s;
}
.ktb .ktb-btn:hover { background: #0A72E8; filter: none; }
.ktb .ktb-btn:active { transform: translateY(1px); }
.ktb-secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; margin-top: 12px;
}
.ktb-secure svg { width: 14px; height: 14px; color: var(--ktb-accent); }

/* --------------------------------------------------------------- notices */
.ktb-alert { border-radius: 10px; }
.ktb-notice {
  border-radius: 10px;
  background: #FFF8E3;
  border-color: #F2DE9B;
  color: #6B5200;
}
.ktb-sub { font-size: 14.5px; }

/* ---------------------------------------------------------------- thanks */
.ktb-tick {
  background: #1F7A4D;
  width: 58px; height: 58px;
  font-size: 28px;
}
.ktb-enq-done strong {
  display: block;
  font-family: var(--f-display, "Inter"), system-ui, sans-serif;
  font-style: var(--f-display-style, normal);
  font-weight: var(--f-display-weight, 700);
  font-size: 23px;
  color: var(--ktb-ink);
  margin-bottom: 6px;
}

/* -------------------------------------------------------------- currency */
.ktb .ktb-cur select,
.ktb-cur select {
  border-color: var(--ktb-line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
  color: #00336F;
  background-color: var(--ktb-soft);
  padding: 6px 26px 6px 13px;
}
.ktb-approx { font-size: 13px; }

/* ===================================================== enquiry form skin */
.ktb-enq,
.ktb-enq-form { font-size: 15.5px; }
.ktb-enq .ktb-btn,
.ktb-enq-form .ktb-btn { border-radius: 999px; text-transform: none; }
.ktb-enq input,
.ktb-enq textarea,
.ktb-enq select { border-radius: 10px; border-width: 1.5px; min-height: 48px; }
.ktb-enq input:focus,
.ktb-enq textarea:focus,
.ktb-enq select:focus {
  border-color: var(--ktb-accent);
  box-shadow: 0 0 0 4px rgba(0, 94, 201, .14);
}

/* ============================================ "Plan your trip" pop-up skin */
.ktb-plan-dialog,
.ktb-plan__dialog { border-radius: 22px; }
.ktb-plan .ktb-btn { border-radius: 999px; text-transform: none; }
.ktb-plan-step.is-on,
.ktb-plan__step.is-on { border-color: var(--ktb-accent); color: var(--ktb-accent); }

/* ------------------------------------------------- shop / archive prices */
.ktb-price-from,
.ktb-price-pp { color: var(--ktb-muted); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 480px) {
  .ktb-card { padding: 18px; border-radius: 18px; }
  .ktb-head strong, .ktb-head .ktb-money { font-size: 25px; }
}

/* On a tour page the rail is sticky (see styles.css .tourside); the plugin's
   own 440px cap would otherwise make the box narrower than the column. */
.tourside .ktb { max-width: none; margin-bottom: 0; }


/* ---------------------------------------------------- EN/FR dual spans
   Same reset as in styles.css, repeated here because this file loads last
   and several plugin rules use descendant `span` selectors. */
.ktb span[data-l][data-l],
.ktb-enq span[data-l][data-l],
.ktb-plan span[data-l][data-l] { all: unset; display: inline; }
