/*
Theme Name: JKL Travels
Theme URI: https://jkltravels.com
Author: Kashmir eServices
Author URI: http://www.kes.mykashmir.in
Description: Production-grade, mobile-responsive Kashmir & Ladakh luxury travel WordPress theme for JKL Travels (www.jkltravels.com). Features clean navigation with mobile hamburger toggle, server-rendered Tour Booking Calculator, Drag & Drop Itinerary Builder, Live Mountain Weather Desk, custom post types for packages & destinations, and Schema.org SEO structured data.
Version: 3.1.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jkl-travels
Tags: travel, tourism, holiday-packages, booking, schema-seo, custom-post-types, responsive-layout, translation-ready, full-width-template
*/

:root {
  --jkl-primary: #1e3a8a; /* Royal Himalayan Blue */
  --jkl-primary-dark: #172554;
  --jkl-accent: #2563eb;
  --jkl-surface: #f8fafc;
  --jkl-border: #e2e8f0;
  --jkl-text-dark: #0f172a;
  --jkl-text-muted: #64748b;
  --jkl-gold: #c8963e;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  color: var(--jkl-text-dark);
  background-color: var(--jkl-surface);
  line-height: 1.6;
}

.jkl-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Site Header with Admin Bar Awareness */
.jkl-site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--jkl-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
body.admin-bar .jkl-site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .jkl-site-header {
    top: 46px;
  }
}

.jkl-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
  padding: 0.5rem 0;
  position: relative;
  width: 100%;
}
.jkl-logo-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--jkl-primary);
  text-decoration: none;
  white-space: nowrap;
}

/* Desktop Navigation */
.jkl-nav {
  display: flex;
  align-items: center;
}
.jkl-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jkl-nav-menu > li {
  position: relative;
}
.jkl-nav-menu a {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.15s ease;
  padding: 0.5rem 0;
  display: block;
}
.jkl-nav-menu a:hover {
  color: var(--jkl-accent);
}

/* Sub-menus dropdown */
.jkl-nav-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--jkl-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  list-style: none;
  z-index: 1000;
}
.jkl-nav-menu li:hover > ul.sub-menu {
  display: block;
}
.jkl-nav-menu ul.sub-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #475569;
}
.jkl-nav-menu ul.sub-menu a:hover {
  background: #f1f5f9;
  color: var(--jkl-primary);
}

/* Mobile Hamburger Toggle */
.jkl-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--jkl-border);
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
}
.jkl-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #0f172a;
  margin: 4px 0;
  transition: 0.2s;
}

/* Mobile Navigation Drawer - Only triggers below 768px */
@media screen and (max-width: 768px) {
  .jkl-mobile-toggle {
    display: block;
  }
  .jkl-nav-cta {
    display: none;
  }
  .jkl-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--jkl-border);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  .jkl-nav.is-open {
    display: block;
  }
  .jkl-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .jkl-nav-menu ul.sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}

/* Responsive Desktop Grid Split Classes */
@media screen and (min-width: 1024px) {
  .jkl-calc-split {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 2.5rem !important;
  }
  .jkl-builder-split {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 24px !important;
  }
}
@media screen and (max-width: 1023px) {
  .jkl-calc-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .jkl-builder-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

.jkl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--jkl-primary);
  color: #ffffff !important;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.jkl-btn-primary:hover {
  background-color: var(--jkl-primary-dark);
}

/* Sleek Ultra-Compact Floating Concierge Dock (Home + WhatsApp + Chat) */
.jkl-floating-dock {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jkl-floating-dock:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.6);
}
@media screen and (max-width: 640px) {
  .jkl-floating-dock {
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.375rem;
  }
}

.jkl-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1;
}
.jkl-dock-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.jkl-dock-home {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}
.jkl-dock-home:hover {
  background: #334155;
  color: #fbbf24;
}

.jkl-dock-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.jkl-dock-whatsapp:hover {
  background: #20ba59;
}

.jkl-dock-chat {
  background: #1e3a8a;
  color: #ffffff;
}
.jkl-dock-chat:hover {
  background: #2563eb;
}
.jkl-dock-chat .jkl-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #34d399;
  animation: jklPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes jklPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.jkl-dock-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(71, 85, 105, 0.6);
}

/* Concierge Chat Popup Modal */
.jkl-chat-modal {
  display: none;
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: calc(100vw - 2rem);
  max-width: 380px;
  height: 520px;
  max-height: calc(100vh - 7rem);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 100000;
  flex-direction: column;
  overflow: hidden;
}
.jkl-chat-modal.is-active {
  display: flex;
}
@media screen and (max-width: 640px) {
  .jkl-chat-modal {
    right: 1rem;
    bottom: 4.5rem;
  }
}

.jkl-chat-header {
  background: #1e3a8a;
  color: #ffffff;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jkl-chat-header h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}
.jkl-chat-header span {
  font-size: 0.6875rem;
  color: #93c5fd;
  display: block;
}
.jkl-chat-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.jkl-chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.jkl-chat-msg {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 85%;
}
.jkl-chat-msg-agent {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}
.jkl-chat-msg-user {
  background: #1e3a8a;
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}

.jkl-chat-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.25rem;
}
.jkl-chat-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  color: #1e3a8a;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.jkl-chat-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.jkl-chat-footer {
  padding: 0.75rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.jkl-chat-form {
  display: flex;
  gap: 0.5rem;
}
.jkl-chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  background: #f8fafc;
}
.jkl-chat-send {
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Interactive Calculator & Itinerary Card Active States */
.jkl-tier-card, .jkl-vehicle-card {
  transition: all 0.2s ease;
  user-select: none;
}
.jkl-tier-card:hover, .jkl-vehicle-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd !important;
}
.jkl-tier-card.active, .jkl-vehicle-card.active {
  border-color: #1e3a8a !important;
  background-color: #eff6ff !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}
.jkl-package-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08) !important;
}

/* Single Blog Article Content Typography */
.jkl-single-article {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.85;
}
.jkl-single-article p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.jkl-single-article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  color: #0f172a;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}
.jkl-single-article h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: #1e3a8a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.jkl-single-article ul, .jkl-single-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.jkl-single-article li {
  margin-bottom: 0.5rem;
}
.jkl-single-article blockquote {
  border-left: 4px solid #1e3a8a;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f8fafc;
  font-style: italic;
  color: #334155;
  border-radius: 0 0.5rem 0.5rem 0;
}
.jkl-single-article img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   Interactive Destination Showcase Filter Tabs
   ========================================================================== */
.jkl-dest-tab {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.jkl-dest-tab:hover {
  color: #0f172a;
  background: #e2e8f0;
}
.jkl-dest-tab.active {
  background: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.3);
}

/* ==========================================================================
   Live Mountain Weather Desk
   ========================================================================== */
.jkl-weather-desk {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 1.25rem;
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}
.jkl-weather-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.625rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.jkl-weather-tab:hover {
  color: #ffffff;
  border-color: #475569;
}
.jkl-weather-tab.active {
  background: #1e3a8a;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Exclusive Travel Features & Mountain Radar Tabs
   ========================================================================== */
.jkl-radar-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}
.jkl-radar-tab:hover {
  color: #ffffff;
  border-color: #475569;
}
.jkl-radar-tab.active {
  background: #1e3a8a;
  border-color: #38bdf8;
  color: #ffffff;
}