/*
 Theme Name:   Neumarkets
 Theme URI:    https://neumarkets.com
 Description:  Child Theme for Divi
 Author:       Neumarkets
 Author URI:   https://neumarkets.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

/* Container for the details dropdown */
.details-dropdown {
  display: inline-block;
  position: relative;
  width: 100%;
  font-family: Arial, sans-serif;
}

/* Style the summary element */
.details-dropdown summary {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

/* Remove default triangle if desired */
.details-dropdown summary::-webkit-details-marker {
  display: none;
}

/* Style the container for the checkboxes */
.details-dropdown .checkbox-container {
  padding: 10px;
  background-color: #fff;
  max-height: 425px;
  overflow-y: auto;
}

/* Style each checkbox item */
.details-dropdown .checkbox-item {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  cursor: pointer;
}

/* Optionally, add a hover effect */
.details-dropdown .checkbox-item:hover {
  background-color: #f9f9f9;
}

/* Optional: style the "Apply Changes" button and "Clear All" link */
form button[type="submit"] {
  background-color: #171717;
  color: #DBFF00;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  margin: 10px 24px;
  font-size: 14px;
  font-weight: 700;
}

form button[type="submit"]:hover {
  background-color: #005177;
}

form a {
  margin-left: 10px;
  color: #E82727;
  text-decoration: underline;
  font-size: 14px;
}

.page-id-172 .business {
background-color: #fff;
margin-bottom: 16px;
padding: 16px;
border-radius: 8px;
}

.business h2 {
  font-size:18px;
}

.business p:first-of-type {
  font-size:18px;
  color: #595959;
}

.business a {
  color: #004BBD;
}

img.open-tab-icon{
  margin-bottom: -6px;
}


.business a.open-tab::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    background-image: url("assets/icon-opentab.svg");
    background-size: contain;
    background-repeat: no-repeat;
}


.details-dropdown .dropdown-content {
    position: relative;
    max-height: 300px;  
    margin-top: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(to right, #7380ff 3%, #ff97c4 50%, #d9ff69 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Make the checkbox container scrollable */
.details-dropdown .checkbox-container {
    max-height: 200px;
    overflow-y: auto;
    border-radius:8px;}

}

/* Style the footer to stick at the bottom of the dropdown */
.dropdown-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    text-align: center;
}

/* Highlight the label if its checkbox is checked */
.checkbox-item:has(input:checked) {
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

/* Container for the search input and clear button */
.search-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
}

/* Adjust the search input to make room on the right for the clear button */
.search-wrapper input {
    width: 100%;
    height: 100%;
    padding-right: 60px;
    border-radius: 8px;
    box-sizing: border-box;
    background: url('assets/icon-search.svg') no-repeat 10px center;
    padding-left: 30px;
    background-color: #ffffff;
    font-size: 16px;
    color: #171717;
    font-weight: 500;
}

input[placeholder="Search by keywords"]::placeholder {color: #A7A8AD;font-size: 16px;}

/* Move the CLEAR button to the right side of the search field */
.clear-button {
    position: absolute;
    right: 8px; /* Changed from left to right */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-decoration: underline;
    text-transform: uppercase;
    z-index: 2;
}

.business p:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.results {
  margin: 45px 0 20px;
}

/* Hide any paragraph or label that is truly empty */
.business p:empty,
.business label:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.details-dropdown[open] > summary {
  position: relative;
  border: none; /* remove the border-image approach */
  border-radius: 8px;
  background: #ffffff; /* or whatever background */
  padding: 10px;
  z-index: 1;
}

.details-dropdown[open] > summary {
  border: 2px solid transparent;
  border-radius: 8px;
  background-image: 
    linear-gradient(white, white),
    linear-gradient(to right, #7380ff 3%, #ff97c4 50%, #d9ff69 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.dropdown-footer {
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 8px 0 #ccc;
}

/* Base checkbox styles */
.checkbox-container input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid #A7A8AD;
  border-radius: 2px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  margin-bottom: -4px;
  z-index: 1;
}

/* Checked state styling */
.checkbox-container input[type="checkbox"]:checked {
  border: 1px solid #171717;
  background-color: #EDEBEB;
}

/* Custom checkmark for the checked state, now slightly smaller */
.checkbox-container input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; /* Adjust position as needed */
  top: 2px;  /* Adjust position as needed */
  width: 4px;  /* Reduced width */
  height: 8px;  /* Reduced height */
  border: solid #171717;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Ensure label text color remains consistent on hover */
.checkbox-container .checkbox-item:hover {
  color: #171717;
}

.happenings-container {
    text-align: center;
}

/* Category Options */
.happenings-category-options a {
    font-weight: 800;
    font-size: 22px;
    color: #595959;
    text-decoration: none;
    margin-left: 20px!important;
    margin-right: 20px!important;
    margin-bottom: -4px;
}

.happenings-category-options a.active {
    color: #171717;
    display: inline-block; /* ensure the pseudo-element is positioned properly */
}

.happenings-category-options a.active::after {
    content: "";
    display: block;
    background: url('/assets/polygon.svg') no-repeat center;
    width: 20px;
    height: 20px;
    margin: 20px auto 0;
}

/* Event Types container */
.happenings-event-types {
    background-color: #DBFF00;
    padding: 10px;
    margin-bottom: 10px;
}

/* Event Types Links */
.happenings-event-types a {
    display: inline-block;
    font-size: 19px;
    color: #8DA308;
    text-decoration: none;
    padding-top: 10px;
}

/* Active Event Types Link styling */
.happenings-event-types a.active {
    background-color: #171717;
    color: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
}


.week-tiles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.week-tile {
    background-color: #eee;  /* Example background */
    width: 60px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.week-tile.active {
    background-color: #171717;
    color: #fff;
}

.week-tile.no-events {
    color: #595959;
    pointer-events: none;  /* Disables clicking */
    opacity: 0.6;          /* Optional: visually indicate it's disabled */
}

.week-month {
    font-size: 14px;
    font-weight: bold;
}

.week-day {
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
  .happenings-category-options,
  .happenings-event-types,
  .week-tiles {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    text-wrap: nowrap;
  }
}

.month-tiles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.month-tile {
    background-color: #eee;
    width: 80px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.month-tile.active {
    background-color: #171717;
    color: #fff;
}

.month-tile.no-events {
    color: #595959;
    pointer-events: none;
    opacity: 0.6;
}

.month-name {
    font-size: 16px;
    font-weight: bold;
}

.month-year {
    font-size: 14px;
}

.home .happenings-category-options a, .happenings-category-options a{
font-weight: 800;
font-size: 19px;
text-decoration: none;
margin-right: 10px!important;
margin-left: 10px!important;
margin-bottom: -4px;
overflow-y: visible !important;
}

.home .happenings-category-options a {
color: #fff;
}

.home  .happenings-category-options a[href*="event_category=upcoming"] {
  /* your desired styles */
  color: #DBFF00;
  font-weight: bold;
}

/*.home  .happenings-category-options a[href*="event_category=upcoming"]::after {
    content: "";
    display: block;
    background: url('/assets/polygon.svg') no-repeat center;
    width: 20px;
    height: 20px;
    margin: 20px auto 0;
}*/

.business-slide {
  padding: 15px;
  background: #171717;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  margin: 10px;
}



.slick-prev img,
.slick-next img {
  width: 40px;
  height: 40px;
}

.business-slider {
  position: relative; /* Makes arrow absolute positioning relative to this container */
  overflow: hidden;
}

/* General arrow styling */
.slick-prev, .slick-next {
  position: absolute;
  top: 150px;             /* Adjust this value to set the vertical spacing from the top */
  border: none;
  color: #fff;
  font-size: 1px;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slick-prev:before, .slick-next:before {
opacity: 1;
color: red;
font-size: 40px;}

/* Place the next arrow at the top right */
.slick-next {
  right: 10px; /* Adjust as needed */
}

/* Place the previous arrow just to the left of the next arrow */
.slick-prev {
  left: 10px; /* Adjust this value so that it sits beside the next arrow */
}

/* Optional: remove focus outlines for cleaner appearance */
.slick-prev:focus, .slick-next:focus {
  outline: none;
}

.et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu {top:58px}

.evoet_dayblock.evcal_cblock { position: absolute; top: 2%; left: 85%!important; z-index: 99;}
@media (max-width: 980px) {.evoet_dayblock.evcal_cblock {position: absolute;top: 0;left: 72%!important;z-index: 99;}} 




body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="password"],
body .gform_wrapper input[type="date"],
body .gform_wrapper select,
body .gform_wrapper textarea {
    border: none;
    border-radius: 8px;
}

body .gform_wrapper ::-webkit-input-placeholder {
    color: #A7A8AD;
}

body .gform_wrapper ::-moz-placeholder {
    color: #A7A8AD;
    opacity: 1;
}

body .gform_wrapper :-ms-input-placeholder {
    color: #A7A8AD;
}

body .gform_wrapper :-moz-placeholder {
    color: #A7A8AD;
    opacity: 1;
}

#gform_submit_button_1,
#gform_submit_button_2,
#load-more-businesses,
#cta-button,
.nm-load-more,
#nm-load-more-simple,
#nm-load-more-search {
  background-color: #181819;
  color: #DBFF00;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.nm-load-more {
display: block;
margin: 24px auto 0;
}

.forum-archive #main-content {padding-top:90px}


.business-image img {border-radius: 16px;width: 100%;}
.business-name {
text-align: left;
margin-top: 20px;
}

body .business-slider .business-slide a {text-align:left;}

.business-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  text-decoration: none;
}

.business-url img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.gradient-border-top {
  border-top: 4px solid transparent;
  border-image: linear-gradient(to right, #7380FF 3%, #FF97C4 50%, #D9FF69 100%);
  border-image-slice: 1;
}


/* Custom Blogroll */
.custom-blogroll {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.custom-blogroll-item {
    flex: 1 1 calc(50% - 15px);
    padding: 20px;
    box-sizing: border-box;
}

.custom-blogroll-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.blogroll-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.blogroll-title {
    font-size: 1.2em;
    margin: 10px 0;
}

.blogroll-excerpt {
    font-size: 1em;
    margin-bottom: 10px;
}

.blogroll-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* space between text and arrow */
    color: #004BBD;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
}

.blogroll-link::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/wp-content/themes/neumarkets/assets/read-more.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.blogroll-thumbnail img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .custom-blogroll-item {
        flex: 1 1 100%;}}

        .forum.single .entry-title.main_title {
margin-top: 80px!important;
}

.forum-archive #main-content {
background: linear-gradient(to bottom, #dc4f33 0%, #edebeb 30%, #edebeb 100%);
}

#main-content .container:before {background:none}

/* Disable the flipping of the next and previous buttons
.et_pb_posts_nav .nav-previous { float: right; } 
.et_pb_posts_nav .nav-next { float: left; } 
.et_pb_posts_nav .meta-nav { display: none; } 
.et_pb_posts_nav .nav-next a:before { content: '← '; } 
.et_pb_posts_nav .nav-previous a:after { content: ' →'; }
*/

@media screen and (max-width: 980px) {
.et_pb_section {
padding-left: 20px;
padding-right: 20px;
}

.et_pb_menu_page_id-19.menu-item-has-children > a::after {
        content: 'ˇ';
        display: inline-block;
        margin-left: 5px;
        vertical-align: middle;
        transform: translateY(20%);
        line-height: 1;
    }

}


.search-button {
display: none;
}

.evo_page_content {padding-top: 40px;}


.et_pb_module.et_pb_code .search-section > label {font-size: 22px}

/* wrap pills and allow text break */
@media (max-width: 768px) {
  .happenings-event-types {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px 6px !important; /* reduced spacing */
    justify-content: center; /* center pills in each row */
  }

  .happenings-event-types a {
    display: inline-block !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    font-size: 19px;
    color: #8DA308;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 40px;
    background-color: #DBFF00;
  }

  .happenings-event-types a.active {
    color: #fff !important;
    border-radius: 40px !important;
    border: 2px solid transparent !important;
    background-color: #000;
  }
}

