/* 
 Theme Name:   he-listinghive
 Theme URI:    
 Description:  right to left support
 Author:       sniryehud@gmail.com
 Author URI:   http://alarosh.in
 Template:     listinghive
 Version:      1.4.34
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/
:root {
  --my-primary-color: #cf07f2;
}

/* fix transparent input elements */
input[type=text],textarea, input[type=number] , input[type=radio]+span::before ,input[type=checkbox]+span::before {
	background-color: #fff !important;
}

/* hide for small screens */
@media screen and (max-width: 768px) {
  .hp-listing__categories, .hp-listing__created-date {
    display: none !important;
  }

/* cut location text after one line */
  .hp-listing__location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
	
	/* decrease pading on listing cards */
	.hp-listing--view-block .hp-listing__content {
		padding: 0.6rem;
	}

	/* decrease title font on listings cards */
	.hp-listing__title {
		font-size: 1.2rem;
		font-weight: bold;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		
	/*keep the same space even if the title is only 1 line */
		line-height: 1.2em;
        height: 2.4em;
	}
	
	/* less padding on mobile */
	.hp-grid__item {
		padding-right: 0.5rem;
		padding-left: 0.5rem;
	}	
	
	/* dont hide image slider buttons on mobile */
	.hp-listing__image-slider:not(:hover) .slick-arrow,.hp-listing__images-slider:not(:hover) .slick-arrow {
    display: block !important;
	}
}


body {
  background-color: linen !important;
}

.footer-navbar__menu ul li:not(:first-child) {
    margin-left: unset !important;
    margin-right: 2rem;
}




.hp-form--listing-search .hp-form__field:not(:last-child),
.hp-form--vendor-search .hp-form__field:not(:last-child) {
	border-right: none;
	border-left: 1px solid rgba(7, 36, 86, 0.075);
}


.hp-field--location a {
	margin-right:  -3rem;
	margin-left: 0rem;
}

.hp-menu--site-header button i:first-child {
    margin-right: .0rem;
	margin-left: .5rem;
}


.hp-link i:first-child {
    margin-left: .5rem;
    margin-right: .0rem;
}

.header-navbar__burger:not(:last-child) {
    margin-left: 2rem;
	margin-right: 0rem;
}

.hp-listing__location i {
    margin-left: .5rem;
	margin-right: .0rem;
}

/* switch arrow from '>' to '<' */
.widget_archive li::before,.widget_categories li::before,.widget_meta li::before,.widget_nav_menu li::before,.widget_product_categories li::before,.wp-block-archives li::before,.wp-block-categories li::before {
    font-size: 14px;
    content: '\f053';
    top: .3rem
}


.widget--footer .widget__title::before {
	right: 0;
	left: unset;
}


/* arrow next to user name */
.header-navbar__menu>ul>li.menu-item-has-children::after {
    margin-left: .0rem;
    margin-right: .5rem ;
}

/* image upload to the right */
.hp-field--attachment-upload label {
    float: right;
}

.widget_archive li::before,.widget_categories li::before,.widget_meta li::before,.widget_nav_menu li::before,.widget_product_categories li::before,.wp-block-archives li::before,.wp-block-categories li::before {
    content: '\f053' !important;
}

.hp-page__title::before,
.hp-section__title::before {
	left: unset !important;
	right: 0;
}

/* table align right */
td,th {
    text-align: right !important;
}

.hp-link i:first-child {
    margin-left: .5rem;
    margin-right: .5rem;
}

/* space between view profile and del acount */
.hp-form__action:not(:last-child) {
    margin-right: .0rem;
	margin-left: 1.5rem;
}

/* location field on new listing form */
.mapboxgl-ctrl-geocoder .suggestions > li > a {
  margin-right: 0;
}

.hp-field--location input[type=text] {
    padding-right: 1rem;
}

/* checkbox and radio button to the right */
.hp-field input[type=checkbox]+span::before,.hp-field input[type=radio]+span::before {
	right: 0;
}

.hp-field input[type=checkbox]+span::after,.hp-field input[type=radio]+span::after {
    right: 4px;
}

.hp-field input[type=checkbox]+span {
    padding-right: 1.75rem;
}

.hp-field input[type=radio]+span {
    padding-right: 1.65rem
}

/* new listing form labels */
.hp-field__label {
	font-size: 1.2rem;
	font-weight: bold;
	text-decoration: underline
}

.hp-vendor--view-block .hp-vendor__attributes--primary {
    margin-left: 1rem;
}

.hp-vendor--view-block .hp-vendor__attributes--primary .hp-vendor__attribute {
    margin-left: 1rem;
	direction: ltr;
}

/* search by margin */
.hp-form--pivot .hp-field__label {
    margin: 0 0 0 .5rem;
}


.title::before,
.content-title::before {
	background-color: var(--my-primary-color) !important; 
}

button[type=submit],input[type=submit] {
    background-color: var(--my-primary-color)  !important;
}

.header-navbar__menu ul li a:hover,.header-navbar__menu ul li.active>a,.header-navbar__menu ul li.current-menu-item>a {
    color: var(--my-primary-color)  !important;
}

.header-navbar__menu>ul>li.current-menu-item::before {
    background-color: var(--my-primary-color) !important;
}

/* header outine */
.wp-block-heading {
	-webkit-text-stroke: 1px black;
}


/* Hide map on the single listing page #hivepress #geolocation */
.hp-template--listing-view-page .hp-map {
  display: none;
}


