/* Styles from top of user-provided first-fold.css - PRESERVED */
body{
  font-family: "Inter", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
nav{ font-size:14px}
.signup,.signin{letter-spacing: .0892857143em;    padding-left: 12px !important;      height: 36px;
    min-width: 64px;  padding-right: 12px !important;}

/* Basic Reset & Font */
body {
    margin: 0;
    /* Assuming body background is set elsewhere or is dark by default.
       If not, a dark body background would complement the header style.
       e.g., background-color: #121212; */
}

* {
    box-sizing: border-box;
}

/* Helper class for elements that were just 'hidden' */
.custom-hidden {
    display: none !important;
}


/* Header Styles */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    z-index: 50;
    padding: 1rem;
    background-color: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.custom-nav {
    font-size: 14px;
}

.custom-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

@media (min-width: 640px) {
    .custom-nav-container { max-width: 640px; }
}
@media (min-width: 768px) {
    .custom-nav-container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .custom-nav-container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .custom-nav-container { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .custom-nav-container { max-width: 1536px; }
}


.custom-logo-menu-wrapper {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    padding-right: 2.5rem;
}

.custom-logo-img {
    max-width: 100%;
    height: 37px;
}

.custom-desktop-menu-wrapper {
    display: none; /* Hidden by default, shown on lg screens */
    padding-left: 2.5rem;
    border-left: 1px solid #6b7280;
    align-items: center; /* Ensure vertical alignment if items have different heights */
}

.custom-desktop-menu-wrapper > * + * { /* This was for space-x-3 on the wrapper itself, list handles its items */
    margin-left: 0.75rem;
}


.custom-desktop-menu-list {
    display: flex;
    /* flex-direction: column; /* Default for mobile if it were visible, overridden by media query */
    padding: 0; /* Reset padding, was 0.5rem */
    margin: 0;  /* Reset margin, was mt-1rem */
    font-weight: 500;
    /* border-radius: 0.5rem; /* Not needed for horizontal list */
    list-style: none;
    align-items: center; /* Vertically align items in the row */
}
/* .custom-desktop-menu-list > * + * {
    margin-top: 1rem; /* This is for vertical stacking, overridden by horizontal spacing in MQ */
/* } */

.custom-desktop-menu-item {
   align-items: center;
    color: hsla(0, 0%, 100%, .5);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    /* height: 100%; /* Can cause issues if parent height isn't defined well for this context */
    justify-content: center;
    -webkit-text-decoration: none;
    text-decoration: none;
    transition: all .3s ease;
    white-space: nowrap;
    padding: 0.5rem 0.75rem; /* Add some padding to each item */
}

.custom-desktop-menu-item:hover {
   color: #fff;
    -webkit-text-decoration: underline;
    text-decoration: underline;
    text-decoration-color: rgb(236, 233, 233);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.custom-desktop-buttons-wrapper {
    display: none; /* Hidden by default, shown on lg screens */
    align-items: center; /* Vertically align buttons */
}
.custom-desktop-buttons-wrapper > * + * {
    margin-left: 1rem;
}


.custom-location-button {
    display: flex;
    align-items: center;
    text-transform: capitalize;
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.custom-location-button:hover {
    background-color: #ff0000;
}

.custom-icon-mr {
    margin-right: 0.5rem;
}

.custom-auth-button {
    display: none; /* Hidden by default, shown on lg screens */
    color: white;
    font-weight: 500;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.custom-auth-button:focus {
    outline: none;
}

.custom-auth-button-primary {
    background-color: #ff0000;
    color: white;
}
.custom-auth-button-primary:hover {
    background-color: #dc2626;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-primary {
        background-color: #dc2626;
    }
    .custom-auth-button-primary:hover {
        background-color: #dc2626;
    }
}


.custom-auth-button-signup {
    background-color: #f3f4f6;
    color: white;
}
.custom-auth-button-signup:hover {
    background-color: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-signup {
        background-color: #ff0000;
        color: white;
    }
    .custom-auth-button-signup:hover {
        background-color: #dc2626;
    }
}

.custom-auth-button-signin {
    background-color: #ff0000;
    color: black;
}
.custom-auth-button-signin:hover {
    background-color: #dc2626;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-signin {
        background-color: #f3f4f6;
        color: black;
    }
    .custom-auth-button-signin:hover {
        background-color: #e5e7eb;
    }
}


.custom-mobile-menu-trigger {
    color: white;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.custom-hamburger-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.custom-mobile-menu {
    position: fixed;
    right: -100%;
    width: 100%;
    height: 100vh;
    top: 0;
    padding: 1.25rem;
    background-color: #161616;
    z-index: 60;
    transition-property: right;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
    overflow-y: auto;
}
.custom-mobile-menu.is-active {
    right: 0;
}


.custom-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-mobile-logo-link {
    display: flex;
    align-items: center;
}

.custom-mobile-menu-close-button {
    color: white;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 9999px;
    cursor: pointer;
}
.custom-mobile-menu-close-button:hover {
    background-color: rgba(255,255,255,0.1);
}

.custom-close-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.custom-mobile-location-section {
    border-top: 1px solid #9ca3af;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
  
}
.custom-mobile-auth-signup{background-color: #ff0000; color:#fff}
.custom-mobile-auth-signin{background-color: #fff; color: #161616;}

.custom-location-button-mobile {
    display: flex;
    align-items: center;
    text-transform: capitalize;
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.custom-location-button-mobile:hover {
    background-color: #ff0000;
}




.custom-mobile-nav-item {
    display: block;
    color: white;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
}
.custom-mobile-nav-item:hover {
    background-color: #374151;
}
.custom-mobile-nav-item-bordered {
    border-top: 1px solid #9ca3af;
}

.custom-live-feed-section {
    color: white;
    display: flex;
    align-items: center;
    border-top: 1px solid #9ca3af;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.custom-live-feed-section img {
    margin-right: 0.5rem;
}

.custom-mobile-auth-buttons {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.custom-mobile-auth-button {
    width: 100%;
    font-weight: 500;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    padding: 0.75rem 0;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-mobile-auth-button:focus {
    outline: none;
}

.custom-auth-button-primary {
    background-color: #ff0000;
    color: white;
}
.custom-auth-button-primary:hover {
    background-color: #dc2626;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-primary {
        background-color: #dc2626;
    }
    .custom-auth-button-primary:hover {
        background-color: #dc2626;
    }
}


.custom-auth-button-signup {
    background-color: #f3f4f6;
    color: white;
}
.custom-auth-button-signup:hover {
    background-color: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-signup {
        background-color: #ff0000;
        color: white;
    }
    .custom-auth-button-signup:hover {
        background-color: #dc2626;
    }
}

.custom-auth-button-signin {
    background-color: #ff0000;
    color: black;
}
.custom-auth-button-signin:hover {
    background-color: #dc2626;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-signin {
        background-color: #f3f4f6;
        color: black;
    }
    .custom-auth-button-signin:hover {
        background-color: #e5e7eb;
    }
}


.custom-mobile-menu-trigger {
    color: white;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.custom-hamburger-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.custom-mobile-menu {
    position: fixed;
    right: -100%;
    width: 100%;
    height: 100vh;
    top: 0;
    padding: 1.25rem;
    background-color: #161616;
    z-index: 60;
    transition-property: right;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
    overflow-y: auto;
}
.custom-mobile-menu.is-active {
    right: 0;
}


.custom-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-mobile-logo-link {
    display: flex;
    align-items: center;
}

.custom-mobile-menu-close-button {
    color: white;
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 9999px;
    cursor: pointer;
}
.custom-mobile-menu-close-button:hover {
    background-color: rgba(255,255,255,0.1);
}

.custom-close-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.custom-mobile-location-section {
    border-top: 1px solid #9ca3af;
    
    display: flex;
    justify-content: space-between;
    
}

.custom-location-button-mobile {
    display: flex;
    align-items: center;
    text-transform: capitalize;
    color: white;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.custom-location-button-mobile:hover {
    background-color: #ff0000;
}



.custom-mobile-nav-item {
    display: block;
    color: white;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
}
.custom-mobile-nav-item:hover {
    background-color: #374151;
}
.custom-mobile-nav-item-bordered {
    border-top: 1px solid #9ca3af;
}

.custom-live-feed-section {
    color: white;
    display: flex;
    align-items: center;
    border-top: 1px solid #9ca3af;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.custom-live-feed-section img {
    margin-right: 0.5rem;
}

.custom-mobile-auth-buttons {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.custom-mobile-auth-button {
    width: 100%;
    font-weight: 500;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    padding: 0.75rem 0;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-mobile-auth-button:focus {
    outline: none;
}

.custom-auth-button-primary {
    background-color: #ff0000;
    color: white;
}
.custom-auth-button-primary:hover {
    background-color: #dc2626;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-primary {
        background-color: #dc2626;
    }
    .custom-auth-button-primary:hover {
        background-color: #dc2626;
    }
}


.custom-auth-button-signup {
    background-color: #f3f4f6;
    color: black;
}
.custom-auth-button-signup:hover {
    background-color: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-signup {
        background-color: #ff0000;
        color: white;
    }
    .custom-auth-button-signup:hover {
        background-color: #dc2626;
    }
}

.custom-auth-button-signin {
    background-color: #ff0000;
    color: black;
}
.custom-auth-button-signin:hover {
    background-color: #dc2626;
}
@media (prefers-color-scheme: dark) {
    .custom-auth-button-signin {
        background-color: #f3f4f6;
        color: black;
    }
    .custom-auth-button-signin:hover {
        background-color: #e5e7eb;
    }
}

/* Nav Slide (Secondary Nav) Styles - MODIFIED SECTION */
.custom-nav-slide {
    display: none;
    position: fixed; /* Changed to fixed */
    left: 0;
    right: 0;
    /* top: 70px; This will now be set by JavaScript */
    width: 100%;
    color: #d1d5db; /* Default text color for items inside */
    font-size: 13px; /* Base font size for secondary nav items, from image */
    background-color: rgba(23, 23, 23, 0.7); /* Matched primary navbar background */
    z-index: 45; /* Lower than custom-header (50) but higher than content */

    backdrop-filter: blur(24px); /* Apply backdrop-filter here as it's now a sibling */
    -webkit-backdrop-filter: blur(24px); /* For Safari compatibility */

    transition-property: transform, opacity;
    transition-duration: 0.3s; /* Slightly faster transition */
    transition-timing-function: ease-in-out;

    transform: translateY(-100%);
    opacity: 0;

    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.custom-nav-slide.is-active {
    transform: translateY(0);
    opacity: 1;
}

.custom-nav-slide .custom-nav-slide-section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Add horizontal padding to sections within the slide */
}
@media (min-width: 640px) {
    .custom-nav-slide.is-active .custom-nav-slide-section { max-width: 640px; }
}
@media (min-width: 768px) {
    .custom-nav-slide.is-active .custom-nav-slide-section { max-width: 768px; }
}
@media (min-width: 1024px) { /* lg: breakpoint - DESKTOP */
    .custom-nav-slide.is-active {
        display: flex !important;
    }
    .custom-nav-slide {
        height: auto;
    }
    .custom-nav-slide.is-active .custom-nav-slide-section { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .custom-nav-slide.is-active .custom-nav-slide-section { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .custom-nav-slide.is-active .custom-nav-slide-section { max-width: 1536px; }
}

.custom-nav-slide-section {
    align-items: center;
    display: block;
    justify-content: center;
    flex-wrap: wrap;
}
.custom-nav-slide-section:not(:first-child) {
    margin-top: 0.8rem; /* Spacing between filter button row and select row */
}

.custom-filter-buttons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.2rem; /* Reduced top margin */
    flex-wrap: wrap;
    gap: 0.5rem; /* Spacing between filter buttons */
}

.custom-filter-button {
    border-radius: 20px; /* Pill shape from image */
    background-color: #2c2c2c; /* Dark grey from image */
    padding: 0.5rem 1rem; /* Padding from image */
    color: #e0e0e0; /* Light grey text from image */
    font-size: 14px; /* Font size from image */
    font-weight: 600; /* Normal weight */
    border: none;
    cursor: pointer;
    /* margin: 0.25rem; (Using gap now) */
}
.custom-filter-button:hover {
    background-color: #ff0000; /* Slightly lighter hover */
}
.custom-filter-button.active-filter { /* Example for a selected filter button like "Awaiting Call" */
    background-color: #ff0000;
    color: white;
}

.custom-filter-count {
    color: #a0a0a0; /* Slightly dimmer count color */
    margin-left: 0.25rem;
}

.custom-nav-slide-filters-container {
    display: flex; /* Align select dropdowns and button in a row */
    flex-wrap: wrap; /* Allow wrapping on smaller viewports if necessary */
    justify-content: center;
    align-items: center; /* Vertically align items */
    gap: 0.6rem; /* Spacing between select wrappers and apply button */
}

.custom-select-wrapper {
    position: relative;
    display: inline-block; /* Changed to inline-block to respect gap and flex properties */
    /* margin-left: 0.25rem; */ /* Using gap from parent */
    /* margin-right: 0.25rem; */
    margin-bottom: 0.5rem; /* For wrapping */
    flex-grow: 1; /* Allow select wrappers to grow and fill space */
    min-width: 130px; /* Minimum width for select inputs */
}
/* Remove fixed widths for select wrappers to allow them to be more flexible with flex-grow */
/* .custom-select-wrapper-140 { width: 140px; } */
/* .custom-select-wrapper-150 { width: 150px; } */
/* .custom-select-wrapper-160 { width: 160px; } */


.custom-select {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background-color: #1A1A1A; /* Very dark background from image */
    border-radius: 4px; /* Slightly rounded corners from image */
    padding: 0.6rem 2.5rem 0.6rem 0.8rem; /* Adjusted padding (top/bottom, right for arrow, left) */
    color: #cccccc; /* Light grey text for placeholder/selected value */
    font-size: 14px; /* Font size from image */
    font-weight: 400;
    text-transform: capitalize;
    border: 1px solid #3a3a3a; /* Thin, slightly lighter border from image */
    height: 38px; /* Approximate height from image */
}
.custom-select:focus {
    outline: none;
    border-color: #555555; /* Slightly more prominent border on focus */
}
.custom-select:hover {
    border-color: #4a4a4a;
}

.custom-select-option {
    background-color: #1A1A1A; /* Match select background */
    color: #cccccc;
    font-size: 14px;
}
.custom-select-option:hover {
    background-color: #ff0000; /* Red hover for options */
    color: white;
}

.custom-select-arrow {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 0.5rem; /* Arrow padding */
    color: #aaaaaa; /* Arrow color */
}

.custom-select-arrow-icon {
    fill: currentColor;
    height: 1.25rem; /* 20px */
    width: 1.25rem;  /* 20px */
}

.custom-apply-filters-button {
    background-color: #ff0000; /* Bright red from image */
    padding: 0 1.5rem; /* Horizontal padding */
    color: white;
    font-size: 13px; /* Font size from image */
    font-weight: 700; /* Medium weight from image */
    letter-spacing: 0.05em; /* Slight letter spacing from image */
    border-radius: 4px; /* Match select border-radius */
    border: none;
    cursor: pointer;
    text-transform: uppercase; /* APPLY is uppercase in image */
    height: 38px; /* Match select height */
    line-height: 38px; /* Vertically center text for button */
    text-align: center;
    /* margin-left: 0.5rem; (Using gap from parent) */
    flex-shrink: 0; /* Prevent button from shrinking if space is tight */
}
.custom-apply-filters-button:hover {
    background-color: #dd0000; /* Darker red on hover */
}


/* Responsive Adjustments */
@media (min-width: 640px) { /* sm: breakpoint */
    .custom-mobile-nav-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) { /* md: breakpoint - TABLET */
    .custom-desktop-menu-list {
        padding: 0; margin-top: 0; flex-direction: row;
    }
    .custom-desktop-menu-list > * + * { margin-left: 1rem; margin-top: 0; }
    .custom-desktop-menu-item { padding: 0; } /* Reset padding from general rule */

    .custom-nav-slide.is-active {
        display: none !important;
    }
}

@media (min-width: 1024px) { /* lg: breakpoint - DESKTOP */
    .custom-desktop-menu-wrapper {
         display: flex; /* Show the desktop menu wrapper */
    }
    .custom-desktop-menu-list {
        flex-direction: row; /* Align items in a row */
        padding: 0; /* Reset padding */
        margin-top: 0; /* Reset margin */
    }
    .custom-desktop-menu-list > * + * {
        margin-left: 1rem; /* Space between items, was md:space-x-4 */
        margin-top: 0; /* Ensure no top margin from vertical stacking */
    }
     .custom-desktop-menu-item {
        padding: 0.5rem 0.75rem; /* Restore or adjust padding as needed for horizontal items */
                                 /* Original had md:p-0, then no specific lg padding. */
                                 /* This adds padding back for better spacing. */
    }


    .custom-desktop-buttons-wrapper { display: flex; }
    .custom-auth-button { display: flex; }
    .custom-mobile-menu-trigger, .custom-mobile-menu { display: none !important; }

    .custom-nav-slide.is-active {
        display: flex !important;
    }
    .custom-nav-slide.is-active .custom-nav-slide-section {
        display: flex;
        align-items: stretch;
        /* width: auto; */
    }
    .custom-nav-slide { height: auto; }


    .custom-filter-button { margin: 0 0.2rem; padding: 0.5rem 0.8rem; }
    .custom-apply-filters-button { /* width: 80px; (Using auto width now) */ }
}

@media (min-width: 1280px) { /* xl: breakpoint */
    .custom-desktop-menu-wrapper > * + * { margin-left: 2rem; } /* Original xl:space-x-8 for wrapper items */
    .custom-desktop-menu-list > * + * {
        margin-left: 2rem; /* If you want more space between menu items on xl screens */
    }
    .custom-filter-button { margin: 0 0.3rem; padding:0.5rem 2rem; }
    .custom-apply-filters-button { /* width: 90px; (Using auto width now) */ }
}
