/* Custom Ad Type Dropdown Menu Styling */
.classima-ad-type-dropdown {
  position: relative;
}

/* Style active item inside the sub-menu dropdown */
.classima-ad-type-dropdown .sub-menu li.current-menu-item > a {
  color: #2d0016 !important;
  font-weight: 600;
}

/* Checkmark indicator for active sub-menu item */
.classima-ad-type-dropdown .sub-menu li.current-menu-item > a::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 8px;
  font-size: 10px;
  color: #2d0016;
}

/* Huntown Custom Search Mode Switcher */
.huntown-search-mode-container {
  display: flex;
  background: #f5f5f5;
  border-radius: 30px;
  padding: 4px;
  margin: 15px 0 25px 0;
  border: 1px solid #e1e1e1;
}

.huntown-mode-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  user-select: none;
}

.huntown-mode-tab.active {
  background: #111111; /* Sleek dark active background */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.huntown-mode-tab:hover:not(.active) {
  color: #000;
  background: #e9e9e9;
}

/* --- Standalone Ad Type Menu in Search Header --- */
.classima-standalone-ad-type-nav-right {
  margin-left: 15px;
  display: flex;
  align-items: center;
  position: relative;
}

.classima-standalone-ad-type-nav-right ul.menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The Main Button styling is now perfectly inherited from the theme's .header-btn class! */

/* Home Page Specific Ad Type Dropdown Button Styling (Overrides inheritance) */
.home
  .classima-standalone-ad-type-nav-right
  > ul.menu
  > li.classima-ad-type-dropdown
  > a.header-btn {
  background-color: transparent !important; /* Adjust to match the transparent/dark Publish button */
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.home
  .classima-standalone-ad-type-nav-right
  > ul.menu
  > li.classima-ad-type-dropdown
  > a.header-btn:hover {
  background-color: #ffffff !important;
  color: #111111 !important;
}

/* Dropdown Arrow Icon */
.classima-standalone-ad-type-nav-right
  > ul.menu
  > li.classima-ad-type-dropdown
  > a::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 10px;
  font-size: 14px;
}

/* The Sub-Menu Dropdown */
.classima-standalone-ad-type-nav-right .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 15px;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 999;
  list-style: none;
  padding: 10px 0;
}

/* Show Dropdown on Hover */
.classima-standalone-ad-type-nav-right
  > ul.menu
  > li.classima-ad-type-dropdown:hover
  .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub-Menu Items */
.classima-standalone-ad-type-nav-right .sub-menu li {
  display: block;
}

.classima-standalone-ad-type-nav-right .sub-menu li a {
  display: block;
  padding: 10px 25px;
  color: #444444;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.classima-standalone-ad-type-nav-right .sub-menu li a:hover {
  background-color: #f8f8f8;
  color: #3b0e22;
  padding-left: 30px; /* Slight indent on hover */
}

/* Active Sub-Menu Item Checkmark */
.classima-standalone-ad-type-nav-right .sub-menu li.current-menu-item > a {
  color: #3b0e22 !important;
  font-weight: 700;
}

.classima-standalone-ad-type-nav-right
  .sub-menu
  li.current-menu-item
  > a::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  float: right;
  font-size: 12px;
  color: #3b0e22;
  margin-top: 4px;
}

/* Completely remove the Listings/Ad Type filter block and all its spacing from the sidebar */
.rtcl-ajax-filter-item.rtcl-filter_ad_type,
.rtcl-ajax-filter-item.rtcl-filter_ad-type,
.rtcl-filter-item-ad-type,
.rtcl-filter-item-ad_type,
.rtcl-filter-ad-type,
.rtcl-filter-ad_type,
.rtcl-filter-form [data-element="ad_type"],
.rtcl-widget-filter-class [class*="filter-ad-type"],
.rtcl-widget-filter-class [class*="filter_ad_type"] {
  display: none !important;
}

/* Mobile Ad Type Pills Navigation */
.mobile-ad-type-pills-container {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 2px 0;
}

.mobile-ad-type-pills-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
}

/* Hide scrollbar but keep functionality */
.mobile-ad-type-pills-scroll::-webkit-scrollbar {
  display: none;
}
.mobile-ad-type-pills-scroll {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.mobile-ad-type-pill {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #3b0e22;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #e2e2e2;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.mobile-ad-type-pill.active {
  background-color: #2d0016; /* Dark wine theme color */
  color: #ffffff !important;
  border-color: #2d0016;
  box-shadow: 0 4px 10px rgba(45, 0, 22, 0.2);
}

.mobile-ad-type-pill:hover, .mobile-ad-type-pill:focus {
  background-color: #e9e9e9;
  color: #2d0016;
}

/* Mobile Header Ad Type Dropdown */
.mobile-header-ad-type {
  display: none !important; /* Hide on desktop */
}

@media (max-width: 991px) {
  /* Restructure mobile header using Flexbox */
  .mean-container .mean-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important;
    height: 56px !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid #2d0016 !important; /* Dark wine theme brand line */
    position: relative !important;
  }
  
  .mean-container .mean-bar .mean-logo-area {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 34px !important;
    float: none !important;
  }
  
  .mean-container .mean-bar .mean-logo-area img {
    height: 100% !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Centered Dropdown Button */
  .mean-container .mean-bar .mobile-header-ad-type {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 0 15px !important; /* Pushes nicely from the logo */
    z-index: 9999;
  }
  
  .mean-container .mean-bar .mobile-header-ad-type ul.menu {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mean-container .mean-bar .mobile-header-ad-type ul.menu > li.classima-ad-type-dropdown > a.header-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 32px !important;
    line-height: normal !important;
    border-radius: 20px !important;
    background-color: #2d0016 !important; /* Theme dark wine color */
    border: 1px solid #2d0016 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(45, 0, 22, 0.2);
    text-transform: capitalize;
    margin: 0 !important;
  }
  
  .mean-container .mean-bar .mobile-header-ad-type ul.menu > li.classima-ad-type-dropdown > a::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 11px;
  }
  
  /* Dropdown Menu Popup */
  .mean-container .mean-bar .mobile-header-ad-type .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 10px;
    background-color: #ffffff;
    min-width: 170px;
    box-shadow: 0px 8px 25px 0px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10000;
    list-style: none;
    padding: 8px 0;
  }
  
  .mean-container .mean-bar .mobile-header-ad-type li.classima-ad-type-dropdown.open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  .mean-container .mean-bar .mobile-header-ad-type .sub-menu li {
    display: block !important;
    border: none !important;
  }
  
  .mean-container .mean-bar .mobile-header-ad-type .sub-menu li a {
    display: block !important;
    padding: 8px 18px !important;
    color: #444444 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: left !important;
    width: auto !important;
    line-height: normal !important;
    background: none !important;
    border-bottom: none !important;
  }
  
  .mean-container .mean-bar .mobile-header-ad-type .sub-menu li a:hover {
    background-color: #f8f8f8 !important;
    color: #2d0016 !important;
  }
  
  .mean-container .mean-bar .mobile-header-ad-type .sub-menu li.current-menu-item > a {
    color: #2d0016 !important;
    font-weight: 700 !important;
  }

  /* Right-aligned Mobile Icons (Chat/User) */
  .mean-container .mean-bar .header-mobile-icons {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-left: auto !important;
    margin-right: 15px !important;
    float: none !important;
    height: 34px !important;
  }
  
  .mean-container .mean-bar .header-mobile-icons a {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 18px !important;
    color: #111111 !important;
    line-height: 1 !important;
    float: none !important;
  }

  /* Mobile Hamburger Toggle Menu */
  .mean-container .mean-bar span.sidebarBtn {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }
  
  .mean-container .mean-bar span.sidebarBtn span {
    display: block !important;
    background-color: #111111 !important;
    height: 2px !important;
    width: 20px !important;
    margin-top: 0 !important;
    position: relative !important;
  }
  
  .mean-container .mean-bar span.sidebarBtn span:before {
    position: absolute !important;
    content: "" !important;
    display: block !important;
    left: 0 !important;
    top: -6px !important;
    width: 100% !important;
    background: #111111 !important;
    height: 2px !important;
  }
  
  .mean-container .mean-bar span.sidebarBtn span:after {
    position: absolute !important;
    content: "" !important;
    display: block !important;
    left: 0 !important;
    top: 6px !important;
    width: 100% !important;
    background: #111111 !important;
    height: 2px !important;
  }
}





