<?php

$realestate_agent_custom_css = '';


// $realestate_agent_is_dark_mode_enabled = get_theme_mod( 'realestate_agent_is_dark_mode_enabled', false );

// if ( $realestate_agent_is_dark_mode_enabled ) {

//     $realestate_agent_custom_css .= 'body,.fixed-header,tr:nth-child(2n+2) {';
//     $realestate_agent_custom_css .= 'background: #000;';
//     $realestate_agent_custom_css .= '}';

//     $realestate_agent_custom_css .= '.some {';
//     $realestate_agent_custom_css .= 'background: #000 !important;';
//     $realestate_agent_custom_css .= '}';

// 	$realestate_agent_custom_css .= '.sticky .post-content,.comment-content a{';
//     $realestate_agent_custom_css .= 'color: #000';
//     $realestate_agent_custom_css .= '}';

// 	$realestate_agent_custom_css .= 'h5.product-text a,#featured-product p.price,.card-header a,.comment-content.card-block p,.post-box.sticky a{';
//     $realestate_agent_custom_css .= 'color: #000 !important';
//     $realestate_agent_custom_css .= '}';

//     $realestate_agent_custom_css .= '.some{';
//     $realestate_agent_custom_css .= 'background: #fff;';
//     $realestate_agent_custom_css .= '}';

//     $realestate_agent_custom_css .= '.some {';
//     $realestate_agent_custom_css .= 'background: #fff !important;';
//     $realestate_agent_custom_css .= '}';
	

//     $realestate_agent_custom_css .= 'body,h1,h2,h3,h4,h5,p,#main-menu ul li a,.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,a,.logo span,header.woocommerce-Address-title.title h2,.sidebar-area .wp-block-latest-comments__comment-meta a{';
//     $realestate_agent_custom_css .= 'color: #fff;';
//     $realestate_agent_custom_css .= '}';

//     $realestate_agent_custom_css .= 'a.wc-block-components-product-name, .wc-block-components-product-name,.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
// .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
// .wc-block-components-totals-item__label,.wc-block-components-totals-item__value,
// .wc-block-components-product-metadata .wc-block-components-product-metadata__description>p,
// .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
// .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
// .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
// .wc-block-components-quantity-selector,table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
// .wc-block-components-product-price__value.is-discounted,del.wc-block-components-product-price__regular,.top-header span a,.top-header span,h1.woocommerce-products-header__title.page-title,h2.woocommerce-loop-product__title,h1.product_title.entry-title,div#tab-description h2,section.related.products h2,h2.woocommerce-Reviews-title,h2#reply-title,h2.comments-title,.sidebar-area li a, .sidebar-area li{';
//     $realestate_agent_custom_css .= 'color: #fff !important;';
//     $realestate_agent_custom_css .= '}';

// 	$realestate_agent_custom_css .= '.post-box{';
//     $realestate_agent_custom_css .= '    border: 1px solid rgb(229 229 229 / 48%)';
//     $realestate_agent_custom_css .= '}';
// }

	/*---------------------------text-transform-------------------*/

	$realestate_agent_text_transform = get_theme_mod( 'menu_text_transform_realestate_agent','CAPITALISE');
	
    if($realestate_agent_text_transform == 'CAPITALISE'){

		$realestate_agent_custom_css .='#main-menu ul li a{';

			$realestate_agent_custom_css .='text-transform: capitalize ; font-size: 14px !important;';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_text_transform == 'UPPERCASE'){

		$realestate_agent_custom_css .='#main-menu ul li a{';

			$realestate_agent_custom_css .='text-transform: uppercase ; font-size: 14px !important';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_text_transform == 'LOWERCASE'){

		$realestate_agent_custom_css .='#main-menu ul li a{';

			$realestate_agent_custom_css .='text-transform: lowercase ; font-size: 14px !important';

		$realestate_agent_custom_css .='}';
	}

	/*---------------------------menu-zoom-------------------*/

		$realestate_agent_menu_zoom = get_theme_mod( 'realestate_agent_menu_zoom','None');

    if($realestate_agent_menu_zoom == 'None'){

		$realestate_agent_custom_css .='#main-menu ul li a{';

			$realestate_agent_custom_css .='';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_menu_zoom == 'Zoominn'){

		$realestate_agent_custom_css .='#main-menu ul li a:hover{';

			$realestate_agent_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color: #fff;';

		$realestate_agent_custom_css .='}';
	}

	/*---------------------------Container Width-------------------*/

		$realestate_agent_container_width = get_theme_mod('realestate_agent_container_width');

		$realestate_agent_custom_css .='body{';

			$realestate_agent_custom_css .='width: '.esc_attr($realestate_agent_container_width).'%; margin: auto';

		$realestate_agent_custom_css .='}';

		/*---------------------------Slider-content-alignment-------------------*/


		$realestate_agent_slider_content_alignment = get_theme_mod( 'realestate_agent_slider_content_alignment','RIGHT-ALIGN');

		 if($realestate_agent_slider_content_alignment == 'LEFT-ALIGN'){

				$realestate_agent_custom_css .='.blog_box{';

					$realestate_agent_custom_css .='text-align:left; right:50%; left:20%;';

				$realestate_agent_custom_css .='}';


			}else if($realestate_agent_slider_content_alignment == 'CENTER-ALIGN'){

				$realestate_agent_custom_css .='.blog_box{';

					$realestate_agent_custom_css .='text-align:center; right:30%; left:30%;';

				$realestate_agent_custom_css .='}';


			}else if($realestate_agent_slider_content_alignment == 'RIGHT-ALIGN'){

				$realestate_agent_custom_css .='.blog_box{';

					$realestate_agent_custom_css .='text-align:right;';

				$realestate_agent_custom_css .='}';

			}


 		/*---------------------------Copyright Text alignment-------------------*/

$realestate_agent_copyright_text_alignment = get_theme_mod( 'realestate_agent_copyright_text_alignment','LEFT-ALIGN');

 if($realestate_agent_copyright_text_alignment == 'LEFT-ALIGN'){

		$realestate_agent_custom_css .='.copy-text p{';

			$realestate_agent_custom_css .='text-align:left;';

		$realestate_agent_custom_css .='}';


	}else if($realestate_agent_copyright_text_alignment == 'CENTER-ALIGN'){

		$realestate_agent_custom_css .='.copy-text p{';

			$realestate_agent_custom_css .='text-align:center;';

		$realestate_agent_custom_css .='}';


	}else if($realestate_agent_copyright_text_alignment == 'RIGHT-ALIGN'){

		$realestate_agent_custom_css .='.copy-text p{';

			$realestate_agent_custom_css .='text-align:right;';

		$realestate_agent_custom_css .='}';

	}

	/*---------------------------related Product Settings-------------------*/

	$realestate_agent_related_product_setting = get_theme_mod('realestate_agent_related_product_setting',true);

		if($realestate_agent_related_product_setting == false){

			$realestate_agent_custom_css .='.related.products, .related h2{';

				$realestate_agent_custom_css .='display: none;';

			$realestate_agent_custom_css .='}';
		}


/*---------------------------Scroll to Top Alignment Settings-------------------*/

	$realestate_agent_scroll_top_position = get_theme_mod( 'realestate_agent_scroll_top_position','Right');

	if($realestate_agent_scroll_top_position == 'Right'){

		$realestate_agent_custom_css .='.scroll-up{';

			$realestate_agent_custom_css .='right: 20px;';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_scroll_top_position == 'Left'){

		$realestate_agent_custom_css .='.scroll-up{';

			$realestate_agent_custom_css .='left: 20px;';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_scroll_top_position == 'Center'){

		$realestate_agent_custom_css .='.scroll-up{';

			$realestate_agent_custom_css .='right: 50%;left: 50%;';

		$realestate_agent_custom_css .='}';
	}

			/*---------------------------Pagination Settings-------------------*/


$realestate_agent_pagination_setting = get_theme_mod('realestate_agent_pagination_setting',true);

	if($realestate_agent_pagination_setting == false){

		$realestate_agent_custom_css .='.nav-links{';

			$realestate_agent_custom_css .='display: none;';

		$realestate_agent_custom_css .='}';
	}

		/*--------------------------- Slider Opacity -------------------*/

	$realestate_agent_slider_opacity_color = get_theme_mod( 'realestate_agent_slider_opacity_color','0.6');

	if($realestate_agent_slider_opacity_color == '0'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.1'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.1';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.2'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.2';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.3'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.3';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.4'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.4';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.5'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.5';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.6'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.6';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.7'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.7';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.8'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.8';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == '0.9'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:0.9';

		$realestate_agent_custom_css .='}';

		}else if($realestate_agent_slider_opacity_color == 'unset'){

		$realestate_agent_custom_css .='.slider img{';

			$realestate_agent_custom_css .='opacity:unset';

		$realestate_agent_custom_css .='}';

		}

	/*---------------------------Scroll to Top Alignment Settings-------------------*/

	$realestate_agent_woocommerce_pagination_position = get_theme_mod( 'realestate_agent_woocommerce_pagination_position','Center');

	if($realestate_agent_woocommerce_pagination_position == 'Left'){

		$realestate_agent_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$realestate_agent_custom_css .='text-align: left;';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_woocommerce_pagination_position == 'Center'){

		$realestate_agent_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$realestate_agent_custom_css .='text-align: center;';

		$realestate_agent_custom_css .='}';

	}else if($realestate_agent_woocommerce_pagination_position == 'Right'){

		$realestate_agent_custom_css .='.woocommerce nav.woocommerce-pagination{';

			$realestate_agent_custom_css .='text-align: right;';

		$realestate_agent_custom_css .='}';
	}


/*---------------------------Global Color-------------------*/

$realestate_agent_first_color = get_theme_mod('realestate_agent_first_color');

/*--- First Global Color ---*/

if ($realestate_agent_first_color) {
  $realestate_agent_custom_css .= ':root {';
  $realestate_agent_custom_css .= '--first-color: ' . esc_attr($realestate_agent_first_color) . ' !important;';
  $realestate_agent_custom_css .= '} ';
}