/* Timeshare Page Custom CSS File */

/* Custom tab navigation styles matching the first screenshot */
.ts-custom-pills .nav-item {
    list-style: none;
}
.ts-custom-pills .nav-link {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #dcdadb;
    border-radius: 4px;
    padding: 8px 24px;
    font-family: var(--vr-sans);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.ts-custom-pills .nav-link.active {
    background-color: #6c011d !important;
    color: #ffffff !important;
    border-color: #6c011d !important;
}
.ts-custom-pills .nav-link:hover:not(.active) {
    background-color: #eaeaea;
    color: #333333;
}

/* Green grid container matching the first screenshot */
.ts-grid-container {
    background-color: #eef4f0; /* Light greenish gray */
    padding: 30px;
    border-radius: 4px;
    margin-top: 10px;
}

.ts-grid-heading {
    font-family: var(--vr-sans);
    font-size: 0.95rem;
    font-weight: 800;
    color: #333333;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Grid layout: 6 columns on desktop */
.ts-weeks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .ts-weeks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .ts-weeks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .ts-weeks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .ts-weeks-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Card layout matching the first screenshot */
.ts-grid-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.ts-grid-card .ts-card-num {
    font-family: var(--vr-sans);
    font-weight: 800;
    font-size: 1.1rem;
    color: #111111;
    margin-bottom: 8px;
}

.ts-grid-card .ts-card-dates {
    font-family: var(--vr-sans);
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 16px;
}

.ts-grid-card .ts-card-status {
    background-color: #e2ede4;
    color: #2e7d32;
    font-family: var(--vr-sans);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    align-self: flex-start;
    width: 100%;
}

.ts-grid-card .ts-card-status.status-closed {
    background-color: #f5f5f5;
    color: #777777;
}

.ts-grid-card .ts-card-status.status-maintenance {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Selected/Active Hot Pick styling (e.g. Week 17) */
.ts-grid-card.active-card {
    background-color: #6c011d !important;
    border-color: #6c011d !important;
}
.ts-grid-card.active-card .ts-card-num,
.ts-grid-card.active-card .ts-card-dates {
    color: #ffffff !important;
}
.ts-grid-card.active-card .ts-card-status {
    background-color: #ffffff !important;
    color: #2e7d32 !important;
}


/* ==========================================================================
   TIMESHARE PAGE REDESIGN STYLES
   ========================================================================== */

/* Hero Section */
.vr-hero.ts-hero::before {
  background: linear-gradient(180deg, rgba(30, 20, 15, 0.55) 0%, rgba(20, 10, 5, 0.85) 100%);
}

/* Feature Cards */
.ts-feature-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
}

.ts-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--vr-gold, #d1a869);
}

.ts-feature-icon {
  font-size: 2.2rem;
  color: #6c011d;
  /* Maroon brand color */
  transition: transform 0.3s ease;
}

.ts-feature-card:hover .ts-feature-icon {
  transform: scale(1.1);
  color: var(--vr-gold, #d1a869);
}

.ts-feature-card h4 {
  font-family: var(--vr-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2c2520;
}

.ts-feature-card p {
  font-family: var(--vr-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666666;
  margin: 0;
}

/* Tabs & Navigation */
.ts-nav-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
}

.ts-nav-pills .nav-link {
  background: #ffffff;
  color: #555555;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
  font-family: var(--vr-sans);
  font-size: 0.9rem;
  white-space: text-nowrap;
}

.ts-nav-pills .nav-link.active,
.ts-nav-pills .nav-link:hover {
  background: #6c011d !important;
  color: #ffffff !important;
  border-color: #6c011d !important;
}

.ts-nav-pills .nav-link.top-trending.active,
.ts-nav-pills .nav-link.top-trending:hover {
  background: #ebdcd0 !important;
  color: #6c011d !important;
  border-color: var(--vr-gold, #d1a869) !important;
}

/* Search and Filters Redesign & Sticky Controls Header */
#calendar-section {
  overflow: visible !important;
  /* Enable sticky positioning for child elements by overriding global overflow: hidden */
}

.ts-calendar-sticky-header-wrapper {
  position: sticky;
  top: 72px;
  /* Aligns just below sticky main navigation header */
  z-index: 990;
  /* Render below header dropdowns but above calendar cards */
  background-color: #f8f6f5;
  /* Matches section bg-light-1 to hide scrolled cards */
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: -10px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle boundary divider */
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .ts-calendar-sticky-header-wrapper {
    top: 60px;
    /* Offset adjustment for mobile header */
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Make Tab Pills swipeable on mobile instead of wrapping vertically */
  .ts-nav-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Hide scrollbar */
  }

  .ts-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .ts-nav-pills .nav-item {
    flex: 0 0 auto;
  }
}

.ts-search-filter-row {
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 50px;
  /* Pill shape layout */
  border: 1px solid #e5e2e0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ts-search-input-wrapper {
  position: relative;
}

.ts-search-input-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c011d;
  /* Maroon theme color */
  font-size: 1rem;
  z-index: 10;
  transition: color 0.3s ease;
}

.ts-search-input-wrapper input {
  padding-left: 48px !important;
  /* Fixed overlap */
  padding-right: 20px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 30px !important;
  font-family: var(--vr-sans);
  font-size: 0.95rem;
  border: 1px solid #dcdadb !important;
  height: 48px !important;
  background-color: #fcfbfa !important;
  transition: all 0.3s ease;
  box-shadow: none !important;
  color: #333333;
}

.ts-search-input-wrapper input:focus {
  background-color: #ffffff !important;
  border-color: #6c011d !important;
  box-shadow: 0 0 0 4px rgba(108, 1, 29, 0.1) !important;
  outline: none !important;
}

.ts-search-input-wrapper input:focus+i {
  color: #d1a869;
  /* Gold accent on focus */
}

.ts-search-input-wrapper input::placeholder {
  color: #9c9a98 !important;
  font-size: 0.9rem;
  opacity: 1;
}

.ts-filter-select {
  border-radius: 30px !important;
  font-family: var(--vr-sans);
  font-size: 0.95rem;
  border: 1px solid #dcdadb !important;
  cursor: pointer;
  height: 48px !important;
  padding-left: 20px !important;
  padding-right: 40px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  background-color: #fcfbfa !important;
  transition: all 0.3s ease;
  box-shadow: none !important;
  color: #333333;
}

.ts-filter-select:focus {
  background-color: #ffffff !important;
  border-color: #6c011d !important;
  box-shadow: 0 0 0 4px rgba(108, 1, 29, 0.1) !important;
  outline: none !important;
}

.ts-results-counter {
  font-family: var(--vr-sans);
  font-size: 0.95rem;
  color: #6c011d;
  font-weight: 600;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(108, 1, 29, 0.05);
  border-radius: 20px;
}

/* Override default container backgrounds to match the theme */
.box.available,
.box.closed,
.box.special {
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Seasonal Sections & Carousels */
.ts-season-section {
  position: relative;
}

.ts-season-heading {
  font-family: var(--vr-sans);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-season-heading.season-spring-text {
  color: #b48a47;
}

/* Gold */
.ts-season-heading.season-summer-text {
  color: #6c011d;
}

/* Maroon */
.ts-season-heading.season-autumn-text {
  color: #a67c43;
}

/* Bronze */
.ts-season-heading.season-winter-text {
  color: #4e443c;
}

/* Charcoal */

.ts-season-count {
  font-family: var(--vr-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #777777;
  text-transform: lowercase;
}

.ts-season-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 20px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbars */
.ts-season-carousel::-webkit-scrollbar {
  height: 6px;
}

.ts-season-carousel::-webkit-scrollbar-thumb {
  background-color: rgba(209, 168, 105, 0.3);
  border-radius: 10px;
  transition: background-color 0.2s;
}

.ts-season-carousel:hover::-webkit-scrollbar-thumb {
  background-color: rgba(209, 168, 105, 0.6);
}

.ts-season-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

/* Redesigned Compact Week Cards - Luxury & Rectangular */
.ts-week-card {
  width: 240px;
  height: 180px;
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-top: 4px solid #cccccc;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  /* Left align is more premium */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.ts-week-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(30, 20, 10, 0.06);
  border-color: rgba(209, 168, 105, 0.4);
}

.ts-week-card.season-spring {
  border-top-color: #d1a869;
}

/* Gold */
.ts-week-card.season-summer {
  border-top-color: #6c011d;
}

/* Maroon */
.ts-week-card.season-autumn {
  border-top-color: #a67c43;
}

/* Bronze */
.ts-week-card.season-winter {
  border-top-color: #4e443c;
}

/* Charcoal */

/* Active Week Spotlight */
.ts-week-card.active {
  border: 1.5px solid #d1a869;
  border-top: 5px solid #6c011d;
  background: #fffcf8;
  box-shadow: 0 8px 24px rgba(108, 1, 29, 0.06);
}

/* Season Badges (Top Left) */
.ts-week-card .ts-season-badge {
  font-family: var(--vr-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 30px;
  display: inline-block;
}

.ts-week-card.season-spring .ts-season-badge {
  background: #fdf8f0;
  color: #b48a47;
}

/* Gold */
.ts-week-card.season-summer .ts-season-badge {
  background: #f9edf0;
  color: #6c011d;
}

/* Maroon */
.ts-week-card.season-autumn .ts-season-badge {
  background: #fcf6ed;
  color: #a67c43;
}

/* Bronze */
.ts-week-card.season-winter .ts-season-badge {
  background: #f5f3f2;
  color: #4e443c;
}

/* Charcoal */

/* Status Indicators (Top Right) */
.ts-week-card .ts-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--vr-sans);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ts-week-card .ts-status-indicator::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.ts-week-card .ts-status-indicator.available {
  background: #e8f5e9;
  color: #2e7d32;
}

.ts-week-card .ts-status-indicator.available::before {
  background-color: #2e7d32;
  box-shadow: 0 0 6px #2e7d32;
}

.ts-week-card .ts-status-indicator.closed {
  background: #f5f5f5;
  color: #777777;
}

.ts-week-card .ts-status-indicator.closed::before {
  background-color: #777777;
}

.ts-week-card .ts-status-indicator.maintenance {
  background: #fff3e0;
  color: #ef6c00;
}

.ts-week-card .ts-status-indicator.maintenance::before {
  background-color: #ef6c00;
}

/* Week number */
.ts-week-card .ts-week-number {
  font-family: var(--vr-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c2520;
  margin-top: 6px;
  margin-bottom: 2px;
}

.ts-week-card.active .ts-week-number {
  color: #6c011d;
}

.ts-week-card.status-closed .ts-week-number {
  color: #a0a0a0;
}

/* Date */
.ts-week-card .ts-week-date {
  font-family: var(--vr-sans);
  font-size: 0.8rem;
  color: #666666;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ts-week-card .ts-week-date i {
  color: #c5a059;
}

/* Card Button */
.ts-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border-radius: 30px;
  font-family: var(--vr-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.ts-card-action-btn.btn-inquire {
  background: transparent;
  color: #6c011d;
  border: 1px solid #6c011d;
}

.ts-card-action-btn.btn-inquire:hover {
  background: #6c011d;
  color: #ffffff;
  border-color: #6c011d;
}

.ts-week-card.season-spring .btn-inquire {
  color: #b48a47;
  border-color: #b48a47;
}

.ts-week-card.season-spring .btn-inquire:hover {
  background: #b48a47;
  color: #ffffff;
}

.ts-week-card.season-summer .btn-inquire {
  color: #6c011d;
  border-color: #6c011d;
}

.ts-week-card.season-summer .btn-inquire:hover {
  background: #6c011d;
  color: #ffffff;
}

.ts-week-card.season-autumn .btn-inquire {
  color: #a67c43;
  border-color: #a67c43;
}

.ts-week-card.season-autumn .btn-inquire:hover {
  background: #a67c43;
  color: #ffffff;
}

.ts-week-card.season-winter .btn-inquire {
  color: #4e443c;
  border-color: #4e443c;
}

.ts-week-card.season-winter .btn-inquire:hover {
  background: #4e443c;
  color: #ffffff;
}

/* Active buttons - solid look */
.ts-week-card.active .btn-inquire {
  background: #6c011d;
  color: #ffffff;
  border-color: #6c011d;
}

.ts-week-card.active .btn-inquire:hover {
  background: #880226;
  border-color: #880226;
}

/* Tab Content Spacing */
.tab-content {
  padding-top: 35px;
}

/* Feature Spotlight Items */
.ts-hot-feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #f2efeb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}

.ts-hot-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 1, 29, 0.04);
  border-color: rgba(108, 1, 29, 0.1);
}

.ts-hot-feature-item .icon-circle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #ebdcd0;
  color: #6c011d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Booklet Viewer Redesign */
.ts-booklet-viewer {
  background: #ffffff;
  border: 1px solid #e5e2e0;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.ts-booklet-frame {
  background: #faf9f8;
  /* Warm light beige matching theme */
  border: 1px solid #f2efeb;
  border-radius: 12px;
  padding: 35px 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  position: relative;
}

.ts-booklet-img-wrapper {
  max-width: 320px;
  /* Scaled up cover preview */
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid #e5e2e0;
}

.ts-booklet-img-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.ts-booklet-viewer:hover .ts-booklet-img-wrapper img {
  transform: scale(1.02);
}

.ts-booklet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #fcfbfa;
  border: 1px solid #e8e5e1;
  padding: 10px 24px;
  border-radius: 40px;
  max-width: 300px;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ts-booklet-controls button {
  background: transparent;
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ts-booklet-controls button:hover {
  color: #6c011d;
}

.ts-page-box {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 10px;
  font-family: var(--vr-sans);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Inquiry Form Section */
.ts-inquiry-sec {
  background: linear-gradient(135deg, #2c2520 0%, #171210 100%);
  position: relative;
  padding: 80px 0;
}

.ts-inquiry-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/experience-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 1;
}

.ts-inquiry-container {
  position: relative;
  z-index: 2;
}

.ts-inquiry-form-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ts-inquiry-form-card label {
  color: #fff;
  font-family: var(--vr-sans);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.ts-inquiry-form-card .form-control,
.ts-inquiry-form-card .form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 6px;
  padding: 12px;
  font-family: var(--vr-sans);
  font-size: 0.9rem;
}

.ts-inquiry-form-card .form-control:focus,
.ts-inquiry-form-card .form-select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--vr-gold, #d1a869);
  box-shadow: none;
  color: #fff;
}

.ts-inquiry-form-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ts-inquiry-form-card .form-select option {
  background: #2c2520;
  color: #fff;
}

.ts-submit-btn {
  background: #6c011d;
  color: #ffffff;
  border: 1px solid #6c011d;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: var(--vr-sans);
  font-weight: 600;
  transition: all 0.3s ease;
}

.ts-submit-btn:hover {
  background: #880226;
  border-color: #880226;
  color: #fff;
}

@media (max-width: 767px) {
  .ts-inquiry-form-card {
    padding: 25px;
  }

  .ts-booklet-viewer {
    padding: 15px;
  }

  .ts-booklet-frame {
    padding: 15px;
  }
}

/* Header Spacing and Link Optimization to Prevent Menu Wrapping */
@media (min-width: 992px) {

  /* Perfectly center the navigation menu, and balance logo and button spacing symmetrically */
  .primary-menu .container-fluid {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80px !important;
  }

  .primary-menu .logo {
    position: absolute !important;
    left: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }

  .primary-menu a.btn-new.btn-primary {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
  }

  #header-nav.collapse.navbar-collapse {
    display: flex !important;
    justify-content: center !important;
    flex-grow: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 60px;
  }

  .primary-menu ul.navbar-nav>li>a:not(.btn) {
    padding: 0px 0.45rem !important;
    /* Tighten horizontal spacing */
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
    margin: 0px 2px !important;
  }

  /* Specific padding-right override for dropdown toggles to match regular links (chevron is inline) */
  .primary-menu ul.navbar-nav>li.dropdown>a.dropdown-toggle {
    padding-right: 0.45rem !important;
  }

  /* When header becomes sticky and items align vertically */
  .primary-menu.sticky-on ul.navbar-nav>li>a:not(.btn) {
    margin: 0 2px !important;
    /* Maintain narrow margins on sticky header */
  }

  /* Premium Dropdown Hover Animation & Glassmorphism */
  .primary-menu:not(.navbar-overlay):not(.navbar-sidebar):not(.navbar-expand-none) ul.navbar-nav li.dropdown .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.99);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.25s;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(108, 1, 29, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(108, 1, 29, 0.08) !important;
    padding: 18px 24px !important;
    margin-top: 5px !important;
  }

  /* Hover Bridge for Dropdown Spacing Gaps (prevents unexpected closing on hover) */
  .primary-menu:not(.navbar-overlay):not(.navbar-sidebar):not(.navbar-expand-none) ul.navbar-nav>li.dropdown>.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    display: block;
    pointer-events: auto;
  }

  .primary-menu:not(.navbar-overlay):not(.navbar-sidebar):not(.navbar-expand-none) ul.navbar-nav>li.dropdown .dropdown-menu .dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -25px;
    width: 25px;
    height: auto;
    background: transparent;
    display: block;
    pointer-events: auto;
  }

  /* Dropdown Active/Show State */
  .primary-menu:not(.navbar-overlay):not(.navbar-sidebar):not(.navbar-expand-none) ul.navbar-nav li.dropdown .dropdown-menu.show-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* Sub-dropdown initial state correction */
  .primary-menu ul.navbar-nav>li.dropdown .dropdown-menu .dropdown-menu {
    left: 100% !important;
    margin-top: -52px !important;
    transform: translateX(12px) scale(0.99) !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.25s !important;
  }

  /* Sub-dropdown active state correction */
  .primary-menu ul.navbar-nav>li.dropdown .dropdown-menu .dropdown-menu.show-dropdown {
    transform: translateX(0) scale(1) !important;
  }
}

/* Ensure main header overlay stacks above the sticky calendar wrapper */
.header-sec,
#header {
  z-index: 1030 !important;
}

/* ==========================================================================
   Header Dropdown Caret & Vibrant Red Hover Fixes
   ========================================================================== */

/* 1. Disable default Bootstrap caret borders and margins on dropdown toggles */
.primary-menu .dropdown-toggle::after,
.primary-menu .dropdown-toggle:after,
.primary-menu ul.navbar-nav>li.dropdown>a.dropdown-toggle::after {


