/*
Theme Name:		    Directory
Theme URI:		    https://wpgeodirectory.com/downloads/directory-theme/
Description:	    Directory is a unique theme concept, for WordPress.org. With Directory Theme you can easily create an online portal and submit your business listings. Directory utilises the power of the WordPress block editor, GeoDirectory and Bootstrap to be able to create a fast loading modern directory site.
Tags:               full-site-editing, blog, food-and-drink, two-columns, editor-style, block-styles
Author:			    AyeCode Ltd
Author URI:		    https://ayecode.io
Template:		    blockstrap
Version:		    3.0.10
Text Domain:	    directory
Requires at least:  6.1
Requires PHP:       7.2
Tested up to:       6.8

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* News Archive Filter - start */
#gd-news-archive-filter, #gd-events-archive-filter {
    display: flex;
    align-items: center;
	width: 100%;             /* full width of container */
}

#gd-news-year, #gd-events-year, #gd-news-month,
#gd-events-month {
	color: green; 
    border-radius: .5rem;
    border: 1px solid #d5d2dc;
    width: 250px;          /* Example width */
    padding: 8px 10px;     /* Example padding */
    font-size: 14px;       /* Font size */
    margin-right: 15px;    /* Space between the dropdowns */
}

button, [type="submit"] {
    background-color: #3993d5;
	border: 1px solid #d5d2dc;
	border-radius: .5rem !important;
	width: 50px;
	padding: 5px;
}

#gd-news-archive-filter select,
#gd-events-archive-filter select,
#gd-news-archive-filter button,
#gd-events-archive-filter button {
    flex: 1 1 auto;          /* grow/shrink equally to fill space */
    min-width: 100px;        /* prevent items from becoming too narrow */
    padding: 0.4rem 0.6rem;  /* add some inner padding */
    font-size: 1rem;         /* make text readable */
    box-sizing: border-box;  /* include padding in width */
}

/* News Archive Filter - end */

/* Hide NewsArchive search box from this /eventsarchive/ url only */
.gd-news-archive .wp-block-geodirectory-geodir-widget-search
{
    display: none; 
}
/* Hide EventsArchive search box from this /eventsarchive/ url only */
.gd-events-archive .wp-block-geodirectory-geodir-widget-search
{
    display: none; 
}

/* Events Filter row button sizes - best to hide obn EventsArchive pages */ 
button#geodir-sort-by,
button#geodir-event-filter {
	min-width: 140px;
}
/* Third button - list/grid view */
.gd-list-view-select-grid {
	min-width: 30px;
}

/* ------------- News Listing Page start -------------------- */

/* News Listings LHS area has 24px L/R padding – reduce to 8px */
@media (min-width: 992px) {
    .wp-block-blockstrap-blockstrap-widget-container .ps-lg-4 { 
		/*
	    padding-left: 1.5rem !important; 
		padding-right: 1.5rem !important; 
		*/
    	padding-left: 0.5rem !important; 
		padding-right: 0.5rem !important; 
    }
}

/* News Listing Title – font ad blackness */ 
h2.fw-bold {
/*  font-weight: 700 !important;  */
    font-weight: 600 !important; 
}
h2.fs-lg {
/*  font-size: 1.15rem !important;  */
    font-size: 1.05rem !important; 
}

/* News Description on Listings page- geodir_post_meta – reduce top/bottom padding */
.geodir_post_meta.pb-3 {
/*
    padding-bottom: 1rem !important; 
    padding-top: 1rem !important;  
*/
    padding-bottom: 0.5rem !important; 
    padding-top: 0.5rem !important;
}


/* ------------- News Listing Page end -------------------- */

/* Added on 16 September for the Food Ratings ------------- */

.fhrs-card {
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 15px;
	margin: 15px 0;
	background: #fafafa;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.fhrs-title { margin: 0 0 10px; color: #333; }
.fhrs-business { font-size: 1.1em; color: #ED6D62; }
.fhrs-rating-img { max-width: 220px; height: auto; }
.fhrs-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.fhrs-table td { padding: 6px; border-bottom: 1px solid #eee; }
.fhrs-badge {
	padding: 4px 8px;
	border-radius: 6px;
	color: #fff;
	font-size: 0.9em;
	display: inline-block;
}
.fhrs-green { background: #28a745; }
.fhrs-teal { background: #20c997; }
.fhrs-blue { background: #007bff; }
.fhrs-orange { background: #fd7e14; }
.fhrs-red { background: #dc3545; }
.fhrs-darkred { background: #7a1c1c; }
.fhrs-grey { background: #6c757d; }


/* Hide only the label text "Address:" */
.geodir-field-address .geodir_post_meta_title {
    display: none;
}

/* Hide the "Contact Information" Tab Title if conditions met in functions.php */
.geodir-tabs .geodir-tab-button.hide-title .geodir-tab-label {
    display: none;
}

/* Padding in Details page - around Address / website / Telephone / etc */
.geodir-post-meta-container { padding: 0.75rem 1rem; }

/* Border and background colour for address part */
.geodir-post-meta-container:has( .geodir-field-address) {
    border: 1px solid #ccc; /* border applied to the outer block */
	border-radius: 12px;
	overflow: hidden;
	background-color: #efefef;     /* light yellow for contrast */
}

/* Reduce bottom margin after splting content on Details page into many tabks as a list to get headers */
.geodir-tabs-as-list .mb-5 {
    margin-bottom: 1rem !important; /* 3rem */
}
