/*
Theme Name: ListingHive Child
Theme URI: https://hivepress.io/themes/listinghive/
Description: A safe place for custom CSS and PHP for the Spektrix Partner Directory.
Author: Spektrix
Template: listinghive
Version: 1.8.4
*/

/* -------------------------------------------------------------------------- */
/* Add your custom CSS below this line                                        */
/* -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

h4 strong {
	font-weight:500 !important;
}

h2.content-title::before,
.content-title::before {
	background-color: #156c33 !important;
}

.site-content {
	background-color: #fafafa;
}

/* ******* EQUAL HEIGHT CARDS ON HOME PAGE ********** */
/* Ensure the column container acts as a flexbox */
.equal-height-cards .wp-block-column {
    display: flex;
    flex-direction: column;
}

/* Make the inner card a flex container that stretches to full height */
.equal-height-cards .wp-block-column > * {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Target the 3rd item (Card Description) and force the empty space below it */
.equal-height-cards .wp-block-column > * > :nth-child(3) {
    margin-bottom: auto !important;
}
/* ******* END EQUAL HEIGHT CARDS ON HOME PAGE ********** */

/* button for use anywhere */
.custom-green-button-primary {
    background: var(--brand-forest) !important;
    color: #fff !important;
}
.custom-green-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: .5rem 1rem !important;
    font-size: 1rem !important;
    font-family: 'Domine', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    border-radius: 3px !important;
    transition: all .2s !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Force white backgrounds on HivePress form fields */
form.hp-form input.hp-field,
form.hp-form textarea.hp-field,
form.hp-form select.hp-field {
    background-color: #ffffff !important;
}

/* Target form labels only on HivePress Add and Edit Listing pages */
.hp-form--listing-submit .hp-field__label,
.hp-form--listing-update .hp-field__label {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* ==================================
   HOMEPAGE CATEGORY CARDS
   ================================== */

/* 1. Base card styling with smooth transition and left alignment */
.edge-to-edge-card {
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
    border: 1px solid rgba(7, 36, 86, 0.075);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left !important; 
    
    /* NEW: Force the card to fill the column height */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Apply the specific shadow and green border on hover */
.edge-to-edge-card:hover {
    box-shadow: 0 0 12px rgba(7, 36, 86, 0.125) !important;
    border: 1px solid #156c33 !important;
}

/* 3. Remove default padding and stretch the INNER container */
.edge-to-edge-card,
.edge-to-edge-card .wp-block-group__inner-container {
    padding: 0 !important;
    overflow: hidden; 
}

/* NEW: Turn the inner container into a flexbox that stretches */
.edge-to-edge-card .wp-block-group__inner-container {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    width: 100% !important;
}

/* 4. Force the SLIM aspect ratio on the image */
.edge-to-edge-card .wp-block-image {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.edge-to-edge-card .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; 
    aspect-ratio: 3 / 1 !important; 
    display: block;
    object-fit: cover; 
}

/* 5. Add padding back ONLY to the text and buttons */
.edge-to-edge-card .wp-block-group__inner-container > *:not(.wp-block-image) {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* 6. Refine Typography Spacing */
.edge-to-edge-card h4 {
    margin-top: 28px !important; /* Breathing room under the image */
    margin-bottom: 14px !important; /* Tight space between header and text */
    padding-bottom: 0 !important;
}

.edge-to-edge-card h4 + p {
    margin-top: 0 !important;
    margin-bottom: 24px !important; /* Clear space before the buttons */
    line-height: 1.7 !important;
}

/* 7. Align and space the buttons natively */
.edge-to-edge-card .wp-block-buttons {
    /* NEW: This is the magic rule that pushes the buttons to the bottom */
    margin-top: auto !important; 
    
    padding-bottom: 24px !important;
    justify-content: flex-start !important; /* Forces buttons to left-align */
    gap: 12px !important; /* Small gap between buttons */
    align-items: center !important;
}

/* ==================================
   HOMEPAGE CATEGORY CARDS BUTTON STYLING
   ================================== */

/* Custom Ghost Button for Cards */
.edge-to-edge-card .text-link-button .wp-block-button__link {
    background-color: transparent !important;
    color: #156c33 !important; /* Your theme's green */
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important; /* Removes the bulky button padding */
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500 !important; 
    -webkit-text-stroke: 0.3px currentColor !important; 
}

/* Add a slight hover effect */
.edge-to-edge-card .text-link-button .wp-block-button__link:hover {
    color: #0e4b23 !important; 
    transform: translateX(4px); 
}

/* Add spacing between the text and the arrow icon */
.edge-to-edge-card .text-link-button .wp-block-button__link svg {
    margin-left: 6px !important; 
}

/* Nuke the theme's default pseudo-element hover shading */
.edge-to-edge-card .text-link-button .wp-block-button__link::before,
.edge-to-edge-card .text-link-button .wp-block-button__link::after {
    display: none !important;
    background: transparent !important;
}

/* Add hover effect to the See All button */
.edge-to-edge-card .wp-block-button:not(.text-link-button) .wp-block-button__link {
    transition: filter 0.2s ease !important;
}

.edge-to-edge-card .wp-block-button:not(.text-link-button) .wp-block-button__link:hover {
    filter: brightness(1.15) !important; 
}

/* =========================================
   HIVEPRESS GLOBAL ATTRIBUTE BASE 
   ========================================= */

/* Force the entire block to align left on the single listing page */
.hp-listing--view-page .hp-listing__attributes--primary {
    text-align: left !important;
}

/* Switch from Flexbox to Block layout for proper stacking */
.hp-listing__attribute {
    display: block !important; 
    position: relative !important;
    padding-left: 32px !important; /* Leaves room for the icon */
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Absolutely position the icon to the left edge */
.hp-listing__attribute i {
    position: absolute !important;
    left: 0 !important;
    top: 0px !important; 
    color: #156c33 !important;
    width: 30px !important;
    text-align: center !important;
}

/* Global styling for bare values/links */
.hp-listing__attribute span, 
.hp-listing__attribute a {
    color: #555 !important;
    font-weight: 400 !important;
    display: block !important; 
    text-align: left !important;
    margin-left: 0 !important; 
}

/* Add vertical spacing between ALL attribute blocks on the single listing page */
.hp-listing--view-page .hp-listing__attribute {
    padding-bottom: 20px !important; /* Pushes the border line DOWN away from your content */
    margin-bottom: 20px !important;  /* Keeps the healthy gap between the border and the next item */
}

/* Ensure the very last attribute doesn't add unnecessary empty space at the bottom */
.hp-listing--view-page .hp-listing__attribute:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important; /* Ensures no weird floating lines at the very end */
}

/* =========================================
   ATTRIBUTE BULLET LIST STYLING
   ========================================= */

/* The main list container */
ul.hp-attribute-list {
    list-style-type: disc !important; /* Adds the actual bullet dots */
    padding-left: 0px !important;    /* Indents the list */
    margin-top: 5px !important;       /* Space between the heading and list */
    margin-bottom: 0 !important;
}

/* The individual bullet points */
ul.hp-attribute-list li {
    display: list-item !important;    /* Forces it to behave like a standard list item */    
    margin-bottom: 4px !important;    /* Slight gap between each bullet */
    text-align: left !important;
    line-height: 1.2 !important;
}

/* =========================================
   MAIN COLUMN ATTRIBUTE RESET
   ========================================= */

/* 1. Strip away the 32px sidebar padding */
.hp-listing--view-page .hp-page__content .hp-listing__attribute {
    padding-left: 0 !important; 
}

/* 2. Un-pin the icons from the absolute left edge so they sit naturally next to the text */
.hp-listing--view-page .hp-page__content .hp-listing__attribute i {
    position: static !important; 
    width: auto !important;
    margin-right: 8px !important; /* Adds a nice, natural gap between the icon and your title */
    top: auto !important;         /* Clears any weird vertical nudging inherited from the sidebar */
}

/* =========================================
   ADD LISTING PAGE CATEGORY TEXT
   ========================================= */
/* Inject helper text below the Category label, above the input */
.hp-form--listing-submit .hp-form__field:has(select[name="categories"]) .hp-field__label::after,
.hp-form--listing-update .hp-form__field:has(select[name="categories"]) .hp-field__label::after {
    content: "Make sure 'Spektrix Partners' is selected to proceed.";
    display: block;
    font-size: 13px;
	margin-top:.5rem;
    margin-bottom: .75rem;
    opacity: .8;
	text-transform: none;
	letter-spacing: normal;
}

/* =========================================
   SPECIFIC ATTRIBUTE DESIGNS
   ========================================= */

/* --- Zapier Integration Pill Styling on Listing Page and Search Result Card --- */

/* 1. Remove empty space on the left (Highly specific to not affect other card items) */
.hp-listing--view-block .hp-listing__attribute.hp-listing__attribute--zapier-compatible {
    padding-left: 0 !important;
}

/* 2. The Pill Container */
.hp-listing__attribute a.zapier-pill {
    display: inline-flex !important; 
    align-items: center;
    gap: 6px;
    padding: 6px 14px; 
    background-color: rgba(141, 198, 64, 0.15); 
    border: 1px solid rgba(141, 198, 64, 0.3);
    border-radius: 999px;
    white-space: nowrap !important;
    text-decoration: none !important; /* Prevents link underline */
    
    /* Typography Updates */
    font-size: 11px; 
    font-weight: 800 !important; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    color: #156c33 !important; 
    line-height: 1;
    
    width: max-content !important; /* Forces badge to stay wide */
}

/* 3. The Icon */
.hp-listing__attribute a.zapier-pill i {
    color: #8dc640; 
    font-size: 12px;
    
    /* Pull icon back inside the pill */
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 15px !important;
}

/* --- URL BUTTON STYLING --- */

/* Custom Button Layout */
.hp-listing__attribute .white-button-icon {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content !important;
    color: #ffffff !important;
    background-color: #156c33 !important; 
    border-color: #156c33 !important;
    transition: all 0.2s ease-in-out !important;
	margin-top: -1rem !important;
}

/* The Hover Effect */
.hp-listing__attribute .white-button-icon:hover {
    filter: brightness(1.15) !important; /* lightens the button by 15% */
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Overpower the global attribute icon styles */
.hp-listing__attribute .white-button-icon i,
.hp-listing__attribute .white-button-icon span,
.hp-listing__attribute .white-button-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    position: static !important; 
    width: auto !important;      
    left: auto !important;       
    transition: all 0.2s ease-in-out !important; /* Keeps the icon fade synced with the button */
}

/* --- SPECIAL OFFERS --- */

/* 1. Shrink the text to 14px */
.hp-listing__attribute--special-offers {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* 2. Bump the icon down 5px */
.hp-listing__attribute--special-offers i {
    top: 3px !important; /*  global icon top is 2px */
}
/* ----- SIDEBAR LOGO ----- */
/* 1. Remove the global left padding and center the container */
.hp-listing__attribute--logo {
    padding-left: 0 !important;    /* Overrides the global 32px padding */
    text-align: center !important; 
    width: 100% !important;
padding-top: 15px !important;
padding-bottom:25px !important;
}

/* 2. Override the inline 150px limit to make it bigger */
.hp-listing__attribute--logo img {
    max-width: 220px !important; /* Adjust number to make bigger or smaller */
    height: auto !important;
    display: inline-block !important; /* Ensures it respects the center alignment */
}
/* --- CATEGORIES & REGIONS SERVED --- */

/* 1. Title Container (h5) */
.hp-listing__attribute--service h5,
.hp-listing__attribute--region h5 {
margin-top: 0px !important; /* Fixes floating icon on result card */      
    margin-bottom: 7px !important; 
    display: block !important;
    color: #343434 !important;
    line-height: 1 !important;
}

/* 2. Override the Strong Tag (Fixes the bolding issue!) */
.hp-listing__attribute--service h5 strong,
.hp-listing__attribute--region h5 strong {
    font-weight: 400 !important; 
}

/* 3. The Values */
span.service-value,
span.region-value {
    color: #777777 !important;
    font-size: 15px !important;
}

/* ----- WEBSITE BUTTON ----- */

/* 1. Style the link as a full-width, centered button */
.hp-listing__attribute a.website-btn {
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    gap: 8px !important;
    background-color: #ffff !important;
    color: #444444 !important;     
    padding: 12px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 16px !important;
		border: 1px solid #b3b3b3;
    text-decoration: none !important; 
    
    /* Pull the button flush-left and stretch it */
    margin-left: -32px !important; 
    width: calc(100% + 32px) !important; 
    box-sizing: border-box !important;
    
    transition: background-color 0.2s ease !important; 
}

/* 2. Add a darker hover state */
.hp-listing__attribute a.website-btn:hover {
    background-color: #156c33 !important;
    color: #ffffff !important;
}
/* Ensure the icon stays white when the button is hovered */
.hp-listing__attribute a.website-btn:hover i {
    color: #ffffff !important;
}


/* 3. Pull the icon INTO the button and make it white */
.hp-listing__attribute a.website-btn i {
    position: static !important; 
    width: auto !important;      
    top: auto !important;
    left: auto !important;
    color: #444444 !important; 
}


/* --- COMPANY LOCATION BADGE --- */

/* 1. Override the global span styling to restore the badge layout */
.hp-listing__attribute span.company-location {
    display: flex !important; /* Changed from inline-flex so it can stretch */
    justify-content: center !important; /* Centers the icon and text horizontally */
    align-items: center !important;
    gap: 6px !important;
    background-color: #e6f4ea !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.9em !important;
    
    /* Pulls the badge flush-left, then stretches it to the right edge */
    margin-left: -32px !important; 
    width: calc(100% + 32px) !important; 
}

/* 2. Pull the icon back INTO the background color */
.hp-listing__attribute span.company-location i {
    position: static !important; 
    width: auto !important;      
    top: auto !important;
    left: auto !important;
    color: #156c33 !important;
}

/* --- PRICING DETAILS CALLOUT --- */

/* 1. Turn the entire container into a full-width styled box (Beefed up selector to beat the reset) */
.hp-listing--view-page .hp-page__content .hp-listing__attribute.hp-listing__attribute--pricing-details {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important; /* This will now successfully override the global reset */
    margin: 30px 0 !important;     
    background-color: #f4fdf6 !important; 
    border: 1px solid #cce5d3 !important; 
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Un-pin the icon and size it up slightly */
.hp-listing--view-page .hp-page__content .hp-listing__attribute.hp-listing__attribute--pricing-details i {
    position: static !important;   
    width: auto !important;
    margin-left: 0 !important; 
    margin-right: 14px !important; 
    font-size: 20px !important;    
    color: #156c33 !important;
    top: auto !important;
    left: auto !important;
}

/* 3. Style the pricing text so it feels premium */
.hp-listing--view-page .hp-page__content .hp-listing__attribute.hp-listing__attribute--pricing-details span,
.hp-listing--view-page .hp-page__content .hp-listing__attribute.hp-listing__attribute--pricing-details div {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* =========================================
   DYNAMIC ATTACHMENTS (Images, PDFs, Videos)
   ========================================= */

/* Push the icon down to align better with the title */
.hp-listing__attribute--client-example-1 i,
.hp-listing__attribute--client-example-2 i {
    top: 4px !important;
}

/* --- 1. Full-Width Image Previews --- */
a.dynamic-file-link.is-image-preview {
    display: block !important; 
    margin-top: 50px !important; 
    width: 100% !important;
    border-radius: 6px !important;
    overflow: hidden !important; 
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important; 
    transition: border-color 0.2s ease !important; 
}

a.dynamic-file-link.is-image-preview:hover {
    border-color: #156c33 !important;
}

a.dynamic-file-link.is-image-preview img {
    width: 100% !important; 
    max-width: 100% !important; 
    height: auto !important;
    border: none !important; 
    border-radius: 0 !important; /* parent container clips the corners */
    transition: transform 0.3s ease !important; 
    background-color: #fff !important;
    display: block !important; 
}

a.dynamic-file-link.is-image-preview:hover img {
    transform: scale(1.01) !important; 
}

/* --- 2. Stacked Full-Width PDF Download Buttons --- */
a.dynamic-file-link.is-pdf-button {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important; /* Stacks the icon, title, and filename */
    align-items: center !important;    
    justify-content: center !important;
    padding: 24px 15px !important;     
    box-sizing: border-box !important;
    text-align: center !important;
    gap: 6px !important;               
    background-color: #f4f4f4 !important;
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    text-decoration: none !important;
    color: #444444 !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
}

a.dynamic-file-link.is-pdf-button:hover {
    background-color: #ffffff !important;
    color: #156c33 !important; 
    border-color: #156c33 !important;
}

a.dynamic-file-link.is-pdf-button i {
    font-size: 28px !important; 
    margin-bottom: 4px !important;
    color: inherit !important;
}

a.dynamic-file-link.is-pdf-button .pdf-btn-action {
    font-size: 15px !important;
    font-weight: 600 !important;
    display: block !important;
}

a.dynamic-file-link.is-pdf-button .pdf-btn-filename {
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 0.7 !important; 
    display: block !important;
    word-break: break-all !important; 
}

/* --- 3. Responsive Video Embed --- */
.hp-listing__attribute.hp-listing__attribute--media {
    padding-left: 0 !important; 
    width: 100% !important;
}

.hp-listing__attribute--media iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; 
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
    display: block !important;
}

/* RESOURCE AND CLIENT EXAMPLE CAPTION */

.resource-example-caption {
    color: #666666;
    font-size: 14px;
	margin-top: -1rem;
}

/* RESOURCE AND CLIENT EXAMPLE MAIN IMAGE/PDF */

.resource-example-main {
	display: inline-block; /* makes the margin-top work on a link */
    margin-top: 24px;
}

/* =========================================
   PDF IFRAME "THUMBNAIL" PREVIEW
   ========================================= */
a.dynamic-file-link.is-pdf-thumbnail {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 350px !important; 
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-top: 20px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
}

/* The actual iframe (interactions disabled and borders cropped) */
a.dynamic-file-link.is-pdf-thumbnail iframe {
    position: absolute !important;
    top: -10px !important;
    left: -10px !important;
    width: calc(100% + 35px) !important; 
    height: calc(100% + 20px) !important; 
    border: none !important;
    pointer-events: none !important; 
}

/* The clickable glass overlay */
.pdf-preview-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* Added a subtle white tint and a tiny 1px blur for the default state */
    background-color: rgba(255, 255, 255, 0.25) !important; 
    backdrop-filter: blur(1px) !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

/* The "View PDF" pill badge (NOW PERMANENTLY VISIBLE) */
.pdf-preview-badge {
    background-color: #156c33 !important;
    color: #ffffff !important;
    padding: 10px 20px !important; 
    border-radius: 30px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
}

/* Force the badge icon to be white */
.pdf-preview-badge i {
    color: #ffffff !important;
}

/* Hover Effects */
a.dynamic-file-link.is-pdf-thumbnail:hover {
    border-color: #156c33 !important;
}

a.dynamic-file-link.is-pdf-thumbnail:hover .pdf-preview-overlay {
    /* Increases the frost and the blur on hover for a satisfying interactive feel */
    background-color: rgba(255, 255, 255, 0.5) !important; 
    backdrop-filter: blur(3px) !important; 
}

a.dynamic-file-link.is-pdf-thumbnail:hover .pdf-preview-badge {
    transform: scale(1.05) !important; /* Makes the button subtly "pop" larger on hover */
    box-shadow: 0 6px 14px rgba(0,0,0,0.3) !important;
}

/* --- Desktop PDF Width Tweak --- */
@media only screen and (min-width: 48em) {
    a.dynamic-file-link.is-pdf-thumbnail {
        width: 80% !important;
    }
}

/*=========================================
   SEARCH RESULT CARDS (GRID VIEW) TWEAKS
   ========================================= */

/* --- SEARCH RESULT CARD THUMBNAIL --- */
.hp-listing__image img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background-color: #ffffff;
	padding: 25px;
}

/* 2. Fix the massive gap between Regions (Content) and Categories (Footer) */
/* Shrink the bottom padding of the content block */
.hp-listing--view-block .hp-listing__content {
    padding-bottom: 12px !important; /* Default is 24px */
}

/* Shrink the top padding of the footer block */
.hp-listing--view-block .hp-listing__footer {
    padding-top: 12px !important; /* Default is 24px */
}

/* 3. Ensure the last attribute in the content doesn't add extra space */
.hp-listing--view-block .hp-listing__content .hp-listing__attribute:last-child {
    margin-bottom: 0 !important;
}

/* --- 4. Hover Outline Effect --- */

/* Make sure the hover animation fades in smoothly */
.hp-listing--view-block {
    transition: all 0.2s ease !important;
}

/* Change the border to green */
.hp-listing--view-block:hover {
    border:  1px solid #156c33 !important;
}

/* =========================================
   SEARCH BAR & SELECT DROPDOWNS
   ========================================= */

/* --- 1. Base Search Form Tweaks --- */

/* Force the parent containers to allow vertical expansion and stop hiding overflow */
.hp-form--listing-search .hp-form__fields,
.hp-form--listing-search .hp-form__field {
    height: auto !important;
    overflow: visible !important;
    align-items: stretch !important; 
}

/* Vertically center the little dropdown arrow */
.hp-form--listing-search .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important; 
    top: 0 !important;
}

/* --- 2. Single-Select Dropdowns (e.g., "I want to...") --- */

.hp-form--listing-search .select2-container--default .select2-selection--single {
    /* Pushes the ENTIRE "I want to..." box down to align with Keywords. 
       Adjust this number (e.g., 5px, 8px, 10px) until it's perfectly flush. */
    margin-top: 20px !important; 
    
    /* Centers the text INSIDE the box */
    display: flex !important;
    align-items: center !important;
    height: 30px !important; 
}

.hp-form--listing-search .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important; 
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- 3. Multiple-Select Dropdowns (Categories, Regions) --- */

/* Force the Select2 background box to stretch vertically, 
   and bring back the -5px bump to align them with Keywords */
.hp-form--listing-search .select2-container .select2-selection--multiple {
    margin-top: -5px !important; /* Restored your fix for Category/Region */
    height: auto !important;
    min-height: 48px !important; 
    padding-bottom: 5px !important;
}

/* Force the wrapper holding the tags to use flexbox and wrap to new lines */
.hp-form--listing-search .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    height: auto !important;
    overflow: visible !important;
    line-height: 2rem !important; /* Safely isolated here for tag spacing! */
}

/* Ensure the individual selected items (tags) can wrap long text if needed */
.hp-form--listing-search .select2-container .select2-selection--multiple .select2-selection__choice {
    white-space: normal !important;
    word-break: break-word !important;
    height: auto !important;
    margin-top: 5px !important;
}

/* =========================================
   HIDING ITEMS
   ========================================= */

/* Hide category tags on HivePress listing blocks */
.hp-listing__categories {
    display: none !important;
}

/* Hide the "Added on" date everywhere */
.hp-listing__date {
    display: none !important;
}

/* Hide category radio buttons in the left filter sidebar */
.hp-form--listing-filter .hp-form__field--radio {
    display: none !important;
}

/* Hide Verify badges everywhere */
.hp-listing__verified-badge {
	display:none !important;
}

/* =========================================
   LISTING PAGE COLUMN SWAP & STATIC SIDEBAR
   ========================================= */

/* Swap main column and sidebar on single listing pages (Desktop) */
@media only screen and (min-width: 48em) {
  .hp-template--listing-view-page .hp-page > .hp-row {
    flex-direction: row-reverse;
  }

  /* --- FORCE SIDEBAR TO BE STATIC --- */
  .hp-template--listing-view-page .hp-page__sidebar {
      align-self: flex-start !important; 
      height: max-content !important; 
  }

  /* Disarm the buggy HivePress JS sticky script AND make it a flex container */
  .hp-template--listing-view-page .inner-wrapper-sticky {
      display: flex !important;
      flex-direction: column !important;
      transform: none !important;
      position: static !important;
  }
  
  .hp-template--listing-view-page .is-affixed {
      transform: none !important;
      position: static !important;
  }
  
  /* --- DESKTOP SIDEBAR WIDGET ORDERING --- */
  .hp-template--listing-view-page .inner-wrapper-sticky > * {
      order: 5 !important; /* Default for unexpected items */
  }
  
  .hp-template--listing-view-page .hp-listing__attributes {
      order: 1 !important;
  }
  
  .hp-template--listing-view-page #wpforms-widget-2 {
      order: 2 !important;
      margin-top: 15px !important; 
  }
  
  .hp-template--listing-view-page .hp-listing__actions--primary {
      order: 3 !important;
      margin-top: 40px !important; 
  }
}

/* Swap main column and sidebar on single listing pages (Mobile) */
@media only screen and (max-width: 47.99em) {
  /* 1. Make the parent row a standard flex column */
  .hp-template--listing-view-page .hp-page > .hp-row {
    display: flex !important;
    flex-direction: column !important; 
  }

  /* 2. "Unpack" the sidebar AND its sticky wrappers */
  .hp-template--listing-view-page .hp-page__sidebar,
  .hp-template--listing-view-page .hp-page__sidebar .is-affixed,
  .hp-template--listing-view-page .hp-page__sidebar .inner-wrapper-sticky {
    display: contents !important; 
  }

  /* 3. Give all sidebar widgets a default order so unexpected items drop to the bottom */
  .hp-template--listing-view-page .hp-page__sidebar > *,
  .hp-template--listing-view-page .inner-wrapper-sticky > * {
    order: 5 !important;
  }

  /* 4. Assign the exact stack order using your specific classes */

  /* Order 1: Details Box (Attributes) */
  .hp-template--listing-view-page .hp-listing__attributes {
    order: 1 !important;
    margin-bottom: 30px !important; 
  }

  /* Order 2: Main Content Area */
  .hp-template--listing-view-page .hp-page__content {
    order: 2 !important;
  }

  /* Order 3: WPForms Contact Form */
  .hp-template--listing-view-page #wpforms-widget-2 {
    order: 3 !important;
    margin-top: 30px !important; 
  }

  /* Order 4: Claim & Report Listing Buttons */
  .hp-template--listing-view-page .hp-listing__actions--primary {
    order: 4 !important;
    margin-top: 20px !important; 
  }
}
  
/* Add a little breathing room so the sidebar doesn't sit exactly on the main content */
.hp-template--listing-view-page .hp-page__sidebar {
  margin-bottom: 30px !important; 
}

/* =========================================
   SEARCH RESULT CARDS: EQUAL HEIGHT & 2-COLUMN
   ========================================= */

/* --- 1. Equal Height Cards (Top-Aligned Content) --- */
.hp-grid__item {
    display: flex !important;
}

.hp-listing--view-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Packs everything to the top */
    width: 100% !important;
    height: 100% !important; 
}

/* Stop the middle content from stretching and creating that awkward gap */
.hp-listing--view-block .hp-listing__content {
    flex-grow: 0 !important; 
    padding-bottom: 10px !important; /* Just a little breathing room above the line */
}

/* Stop the footer from shoving itself to the absolute bottom */
.hp-listing--view-block .hp-listing__footer {
    margin-top: 0px !important; 
	padding-top:20px !important;
}


/* --- 2. Two-Column Attribute Grid --- */
.hp-listing--view-block .hp-listing__attributes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important; /* Made the gap a tiny bit smaller to give text more room */
    align-items: start !important;
    width: 100% !important;
}

/* Aggressively stop weird word breaks (Fixes "Engageme nt") */
.hp-listing--view-block .hp-listing__attribute,
.hp-listing--view-block .hp-listing__attribute h5,
.hp-listing--view-block .hp-listing__attribute span,
.hp-listing--view-block .hp-listing__attribute ul,
.hp-listing--view-block .hp-listing__attribute li {
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}


/* --- 3. Smaller Text & Fixed Indent --- */
/* Adjust the container to fit the tiny icons */
.hp-listing--view-block .hp-listing__attribute {
    padding-left: 16px !important; 
    margin-bottom: 0 !important; 
}

/* Smaller 13px headings */
.hp-listing--view-block .hp-listing__attribute h5 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
}

/* FIXED INDENT: Pulls the bullets much closer to the left side */
.hp-listing--view-block ul.hp-attribute-list {
    padding-left: 10px !important; /* Reduced from 14px */
    margin-left: 0 !important;
}

/* Smaller 12px list items */
.hp-listing--view-block ul.hp-attribute-list li {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
}

/* Shrink the icon to match the smaller text scale */
.hp-listing--view-block .hp-listing__attribute i {
    font-size: 12px !important;
    width: 14px !important;
    top: 0px !important;
    left: 0 !important;
}

/* FORM DISCLAIMER */
div.wpforms-container-full .wpforms-field-label, .wp-core-ui div.wpforms-container-full .wpforms-field-label {
	font-weight: 400 !important;
}
.wpforms-submit {
	background-color: #156c33 !important;
}

/* =========================================
   CUSTOM SIGN IN / REGISTER NAV BUTTON
========================================= */
/* Hide the default HivePress Sign In button */
.header-navbar__menu .menu-item--user-login {
    display: none !important;
}

/* Hide the custom dropdown register/signin link(s) when the user is already logged in */
body.logged-in .custom-login-link {
    display: none !important;
}

/* =========================================
   REMOVE "IMAGES" TOP SECTION FROM PARTNER PAGE
========================================= */
/* Hide the image slider/gallery on the single listing page */
.hp-listing--view-page .hp-listing__images {
    display: none !important;
}

/* Optional: Adjust spacing on the single page if hiding the image leaves an awkward gap */
.hp-listing--view-page .hp-listing__content {
    margin-top: 0 !important;
}


/* =========================================
   NAV SEARCH BAR (SEARCHES LISTINGS - TURNED OFF FOR NOW)
========================================= */

/* HivePress Expanding Menu Search */
/*.hp-expand-search-form .hp-search-input {
    width: 0; 
    opacity: 0; 
    transition: width 0.3s ease, opacity 0.3s ease; 
    visibility: hidden; 
    background: #fff; 
    outline: none;
    padding: 8px 12px; 
    border-radius: 4px; 
    border: 1px solid #e1e1e1;
}

.hp-expand-search-form.open .hp-search-input {
    width: 200px !important; 
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} */

/* Hides the default webkit "x" clear button */
/* .hp-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}  */

/* =========================================
   FOOTER
========================================= */
/* SOCIAL ICONS */
.hhs-social-con {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.hhs-social-con a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1 !important;
    text-decoration: none;
}

/* ensures the icon inside stays centered in that 24px box */
.hhs-social-con i, 
.hhs-social-con svg {
    width: 100% !important;
    text-align: center;
    font-size: 20px;
	color: #348820;
}

/* BACK ARROW IN SPEKTRIX HOME CSS IS IN THE MENU ITEM */

/* NEWSLETTER SIGN UP FORM CSS IS IN THE WIDGET */

/* =========================================
   SEARCH RESULTS: 3-COLUMN FULL WIDTH
   ========================================= */

/* 1. Hide the left filter sidebar completely */
.hp-template--listings-view-page .hp-page__sidebar {
    display: none !important;
}

/* 2. Force the main content area to expand from 66% to 100% width */
.hp-template--listings-view-page .hp-page__content {
    flex-basis: 100% !important;
    max-width: 100% !important;
}

/* 3. Force the grid items into 3 columns on Desktop (Screens wider than 992px) */
@media only screen and (min-width: 62em) { 
    .hp-template--listings-view-page .hp-grid__item {
        flex-basis: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* 4. Drop to 2 columns on Tablets so the cards don't get squished */
@media only screen and (min-width: 48em) and (max-width: 61.99em) {
    .hp-template--listings-view-page .hp-grid__item {
        flex-basis: 50% !important;
        max-width: 50% !important;
    }
}

/* Note: Mobile (< 48em) is handled natively by HivePress (1 column), 
    don't need to add a rule for it here */

/* =========================================
   SUPPORTING PAGES CSS
========================================= */

/* Bigger h1 for these pages */
.custom-h1 {
    font-size: clamp(40px, 5vw, 62px) !important; /* Responsive scaling */
    margin-bottom: 6rem !important;
}

/* Make links dark green and underline ONLY in the main content area of custom hero pages */
body:has(.custom-hero-cover) .site-content a:not(.wp-block-button__link) {
    color: #156c33 !important; 
    text-decoration: underline !important;
    text-underline-offset: 3px !important; 
    text-decoration-thickness: 1px !important; 
}

body:has(.custom-hero-cover) .site-content a:hover {
    text-decoration: none !important; 
}

/* Remove .site-content margin ONLY on pages that use a custom hero */
body:has(.custom-hero-cover) .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove gap under the Hero AND set minimum height */
.wp-block-cover.custom-hero-cover {
    margin-bottom: 0 !important;
    min-height: 375px !important;
}

/* Remove gap at the top of the Green Group, add padding top/bottom */
.wp-block-group.custom-bottom-group {
    margin-top: 0 !important;
    padding-top: 65px !important;
    padding-bottom: 100px !important;
}

/* Width limit for the CONTENT inside the Green Group */
.wp-block-group.custom-bottom-group > * {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Mobile adjustment for support pages */
@media (max-width: 768px) {
    .wp-block-cover.custom-hero-cover {
        min-height: 200px !important;
    }
	.custom-h1 {
    margin-bottom: 2rem !important;
}
}
