/**
 * We Love Dogs - Luxury HTML Sitemap Styling
 * Brand: We Love Dogs Kennel Resort
 * Colors: Navy #083B5E | Crimson #DC2125 | Cream #FAF7F2
 * Fonts: Baloo 2 (Headings), DM Sans (Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&display=swap');

/* Main Wrapper */
.wld-sitemap-wrap {
  font-family: var(--font-body, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--e-global-color-body, #2D3748);
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 15px 40px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.wld-sitemap-wrap * {
  box-sizing: border-box;
}

/* ==========================================================================
   1. HERO & HEADER SECTION
   ========================================================================== */
.wld-sitemap-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 36px 24px 32px;
  background: linear-gradient(135deg, #FAF7F2 0%, #FFFFFF 100%);
  border-radius: 24px;
  border: 1px solid var(--e-global-color-border, #E2E8F0);
  box-shadow: 0 10px 30px rgba(8, 59, 94, 0.04);
  position: relative;
  overflow: hidden;
}

.wld-sitemap-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #083B5E 0%, #DC2125 50%, #083B5E 100%);
}

.wld-sitemap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #083B5E;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(8, 59, 94, 0.18);
}

.wld-sitemap-badge i {
  color: #DC2125;
  font-size: 0.9rem;
}

.wld-sitemap-title {
  font-family: var(--font-heading, 'Baloo 2', cursive, sans-serif);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #083B5E;
  margin: 0 0 10px 0;
}

.wld-sitemap-subtitle {
  font-size: 1.05rem;
  color: #64748B;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.6;
}

/* Stats Counter Bar */
.wld-sitemap-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.wld-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #CBD5E1;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #083B5E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.wld-stat-pill:hover {
  border-color: #083B5E;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(8, 59, 94, 0.1);
}

.wld-stat-pill i {
  color: #DC2125;
  font-size: 0.95rem;
}

.wld-stat-pill strong {
  color: #DC2125;
  font-weight: 800;
}

/* ==========================================================================
   2. INTERACTIVE CONTROLS (SEARCH & TABS)
   ========================================================================== */
.wld-sitemap-controls {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(8, 59, 94, 0.05);
  padding: 20px 24px;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Live Search Box (Flexbox layout - 100% immune to theme overlap bugs) */
.wld-sitemap-wrap .wld-sitemap-search-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  background: #FAF7F2 !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 30px !important;
  padding: 4px 16px 4px 18px !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.wld-sitemap-wrap .wld-sitemap-search-wrap:focus-within {
  background: #ffffff !important;
  border-color: #DC2125 !important;
  box-shadow: 0 0 0 4px rgba(220, 33, 37, 0.12) !important;
}

.wld-sitemap-wrap .wld-sitemap-search-icon,
.wld-sitemap-wrap .wld-sitemap-search-wrap i.fa-magnifying-glass {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #083B5E !important;
  font-size: 1.1rem !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

.wld-sitemap-wrap input.wld-sitemap-search-input,
.wld-sitemap-wrap input[type="text"].wld-sitemap-search-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 42px !important;
  font-family: inherit !important;
  font-size: 0.98rem !important;
  color: #083B5E !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

.wld-sitemap-wrap input.wld-sitemap-search-input:focus,
.wld-sitemap-wrap input[type="text"].wld-sitemap-search-input:focus {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wld-sitemap-wrap input.wld-sitemap-search-input::placeholder,
.wld-sitemap-wrap input[type="text"].wld-sitemap-search-input::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
}

.wld-sitemap-wrap .wld-sitemap-search-clear {
  position: static !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #94A3B8 !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  padding: 6px !important;
  margin-left: 8px !important;
  display: none;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
  line-height: 1 !important;
}

.wld-sitemap-wrap .wld-sitemap-search-clear:hover {
  color: #DC2125 !important;
}

/* Category & Section Filter Tabs */
.wld-sitemap-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wld-sitemap-tab-btn {
  background: #FAF7F2;
  color: #083B5E;
  border: 1.5px solid #E2E8F0;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.wld-sitemap-tab-btn:hover {
  background: #ffffff;
  border-color: #083B5E;
  transform: translateY(-2px);
}

.wld-sitemap-tab-btn.active {
  background: #083B5E;
  color: #ffffff;
  border-color: #083B5E;
  box-shadow: 0 4px 14px rgba(8, 59, 94, 0.22);
}

.wld-sitemap-tab-btn .tab-count {
  font-size: 0.76rem;
  background: rgba(8, 59, 94, 0.1);
  color: #083B5E;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 800;
}

.wld-sitemap-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Live Search Results Status Message */
.wld-sitemap-live-count {
  font-size: 0.88rem;
  color: #64748B;
  font-weight: 600;
  display: none;
  margin-top: -6px;
  padding-left: 6px;
}

.wld-sitemap-live-count strong {
  color: #DC2125;
}

/* ==========================================================================
   3. SITEMAP SECTIONS & CARD GRID
   ========================================================================== */
.wld-sitemap-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

.wld-sitemap-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wld-sitemap-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wld-sitemap-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Individual Section Card */
.wld-sitemap-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(8, 59, 94, 0.04);
  padding: 26px 24px;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.wld-sitemap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(8, 59, 94, 0.08);
  border-color: #CBD5E1;
}

/* Card Header */
.wld-sitemap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #FAF7F2;
  gap: 12px;
}

.wld-sitemap-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wld-sitemap-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #083B5E 0%, #0c4c79 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(8, 59, 94, 0.18);
  transition: background 0.3s ease;
}

.wld-sitemap-card:hover .wld-sitemap-card-icon {
  background: linear-gradient(135deg, #DC2125 0%, #B81B1F 100%);
}

.wld-sitemap-card-title {
  font-family: var(--font-heading, 'Baloo 2', cursive, sans-serif);
  font-size: 1.28rem;
  font-weight: 800;
  color: #083B5E;
  margin: 0;
  line-height: 1.3;
}

.wld-sitemap-card-count {
  background: #FAF7F2;
  color: #083B5E;
  border: 1px solid #E2E8F0;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   4. LINK LISTS & HIERARCHICAL TREE
   ========================================================================== */
.wld-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wld-sitemap-item {
  position: relative;
  transition: all 0.2s ease;
}

.wld-sitemap-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #2D3748;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  background: transparent;
  transition: all 0.22s ease;
  gap: 10px;
}

.wld-sitemap-link:hover {
  background: #FAF7F2;
  color: #DC2125;
  transform: translateX(4px);
}

.wld-link-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.wld-link-icon {
  color: #083B5E;
  font-size: 0.84rem;
  opacity: 0.65;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wld-sitemap-link:hover .wld-link-icon {
  color: #DC2125;
  opacity: 1;
  transform: scale(1.15);
}

.wld-link-title {
  white-space: normal;
  word-break: break-word;
}

.wld-link-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wld-sitemap-link:hover .wld-link-badge {
  background: #FEE2E2;
  color: #DC2125;
}

/* Arrow indicator on hover */
.wld-link-arrow {
  font-size: 0.75rem;
  color: #CBD5E1;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wld-sitemap-link:hover .wld-link-arrow {
  opacity: 1;
  color: #DC2125;
  transform: translateX(0);
}

/* Hierarchical Sub-pages Tree Styling */
.wld-sitemap-sublist {
  list-style: none;
  margin: 4px 0 6px 14px;
  padding: 0 0 0 16px;
  border-left: 2px dashed #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wld-sitemap-sublist .wld-sitemap-link {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 10px;
}

.wld-sitemap-sublist .wld-link-icon {
  font-size: 0.76rem;
  color: #64748B;
}

/* Deeper Sub-pages */
.wld-sitemap-sublist .wld-sitemap-sublist {
  border-left-color: #E2E8F0;
  margin-left: 8px;
  padding-left: 12px;
}

/* ==========================================================================
   5. POSTS & CATEGORIES SPECIAL CARD STYLES
   ========================================================================== */
/* Category Group Heading inside Post Card */
.wld-post-cat-group {
  margin-bottom: 18px;
}

.wld-post-cat-title {
  font-family: var(--font-heading, 'Baloo 2', cursive, sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #083B5E;
  margin: 0 0 8px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wld-post-cat-title i {
  color: #DC2125;
  font-size: 0.85rem;
}

.wld-post-date {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Categories Overview Tags Cloud */
.wld-cat-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.wld-cat-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FAF7F2;
  border: 1.5px solid #E2E8F0;
  padding: 8px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #083B5E;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.22s ease;
}

.wld-cat-tag-pill:hover {
  background: #083B5E;
  color: #ffffff;
  border-color: #083B5E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 59, 94, 0.15);
}

.wld-cat-tag-pill .cat-pill-count {
  font-size: 0.75rem;
  background: #ffffff;
  color: #DC2125;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

.wld-cat-tag-pill:hover .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   6. NO RESULTS / EMPTY STATE
   ========================================================================== */
.wld-sitemap-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px dashed #CBD5E1;
  grid-column: 1 / -1;
}

.wld-sitemap-empty i {
  font-size: 2.8rem;
  color: #94A3B8;
  margin-bottom: 14px;
}

.wld-sitemap-empty h4 {
  font-family: var(--font-heading, 'Baloo 2', cursive, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #083B5E;
  margin: 0 0 6px 0;
}

.wld-sitemap-empty p {
  color: #64748B;
  font-size: 0.94rem;
  margin: 0;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .wld-sitemap-grid.cols-3,
  .wld-sitemap-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .wld-sitemap-wrap {
    padding: 0 10px 30px;
  }

  .wld-sitemap-header {
    padding: 28px 18px 24px;
    border-radius: 18px;
  }

  .wld-sitemap-title {
    font-size: 1.85rem;
  }

  .wld-sitemap-controls {
    padding: 16px;
    border-radius: 16px;
  }

  .wld-sitemap-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .wld-sitemap-grid.cols-2,
  .wld-sitemap-grid.cols-3,
  .wld-sitemap-grid.cols-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wld-sitemap-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
}
