<?php

$house_rental_custom_css = "";


$house_rental_primary_color = get_theme_mod('house_rental_primary_color');
$house_rental_second_color = get_theme_mod('house_rental_second_color');

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

if ($house_rental_primary_color) {
  $house_rental_custom_css .= ':root {';
  $house_rental_custom_css .= '--primary-color: ' . esc_attr($house_rental_primary_color) . ' !important;';
  $house_rental_custom_css .= '} ';
}

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

if ($house_rental_second_color) {
  $house_rental_custom_css .= ':root {';
  $house_rental_custom_css .= '--secondary-color: ' . esc_attr($house_rental_second_color) . ' !important;';
  $house_rental_custom_css .= '} ';
}

/*-------------------- Scroll Top Alignment-------------------*/

$house_rental_scroll_top_alignment = get_theme_mod( 'house_rental_scroll_top_alignment','right-align');

if($house_rental_scroll_top_alignment == 'right-align'){
$house_rental_custom_css .='#button{';
	$house_rental_custom_css .='right: 3%;';
$house_rental_custom_css .='}';
}else if($house_rental_scroll_top_alignment == 'center-align'){
$house_rental_custom_css .='#button{';
	$house_rental_custom_css .='right:0; left:0; margin: 0 auto;';
$house_rental_custom_css .='}';
}else if($house_rental_scroll_top_alignment == 'left-align'){
$house_rental_custom_css .='#button{';
	$house_rental_custom_css .='left: 3%;';
$house_rental_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$house_rental_archive_pagination_alignment = get_theme_mod( 'house_rental_archive_pagination_alignment','left-align');

if($house_rental_archive_pagination_alignment == 'right-align'){
$house_rental_custom_css .='.pagination{';
	$house_rental_custom_css .='justify-content: end;';
$house_rental_custom_css .='}';
}else if($house_rental_archive_pagination_alignment == 'center-align'){
$house_rental_custom_css .='.pagination{';
	$house_rental_custom_css .='justify-content: center;';
$house_rental_custom_css .='}';
}else if($house_rental_archive_pagination_alignment == 'left-align'){
$house_rental_custom_css .='.pagination{';
	$house_rental_custom_css .='justify-content: start;';
$house_rental_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$house_rental_resp_scroll_top = get_theme_mod( 'house_rental_resp_scroll_top',true);
if($house_rental_resp_scroll_top == true && get_theme_mod( 'house_rental_scroll_to_top',true) != true){
	$house_rental_custom_css .='#button.show{';
		$house_rental_custom_css .='visibility:hidden !important;';
	$house_rental_custom_css .='} ';
}
if($house_rental_resp_scroll_top == true){
	$house_rental_custom_css .='@media screen and (max-width:575px) {';
	$house_rental_custom_css .='#button.show{';
		$house_rental_custom_css .='visibility:visible !important;';
	$house_rental_custom_css .='} }';
}else if($house_rental_resp_scroll_top == false){
	$house_rental_custom_css .='@media screen and (max-width:575px){';
	$house_rental_custom_css .='#button.show{';
		$house_rental_custom_css .='visibility:hidden !important;';
	$house_rental_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

$house_rental_resp_loader = get_theme_mod('house_rental_resp_loader',false);
if($house_rental_resp_loader == true && get_theme_mod('house_rental_header_preloader',false) == false){
	$house_rental_custom_css .='@media screen and (min-width:575px){
		.preloader{';
		$house_rental_custom_css .='display:none !important;';
	$house_rental_custom_css .='} }';
}

if($house_rental_resp_loader == false){
	$house_rental_custom_css .='@media screen and (max-width:575px){
		.preloader{';
		$house_rental_custom_css .='display:none !important;';
	$house_rental_custom_css .='} }';
}

// Scroll to top button shape 

$house_rental_scroll_border_radius = get_theme_mod( 'house_rental_scroll_to_top_radius','curved-box');
if($house_rental_scroll_border_radius == 'box'){
	$house_rental_custom_css .='#button{';
		$house_rental_custom_css .='border-radius: 0px;';
	$house_rental_custom_css .='}';
}else if($house_rental_scroll_border_radius == 'curved-box'){
	$house_rental_custom_css .='#button{';
		$house_rental_custom_css .='border-radius: 4px;';
	$house_rental_custom_css .='}';
}
else if($house_rental_scroll_border_radius == 'circle'){
	$house_rental_custom_css .='#button{';
		$house_rental_custom_css .='border-radius: 50%;';
	$house_rental_custom_css .='}';
}

// Footer Background Image Attachment 

$house_rental_footer_attachment = get_theme_mod( 'house_rental_background_attachment','scroll');
if($house_rental_footer_attachment == 'fixed'){
	$house_rental_custom_css .='.site-footer{';
		$house_rental_custom_css .='background-attachment: fixed;';
	$house_rental_custom_css .='}';
}elseif ($house_rental_footer_attachment == 'scroll'){
	$house_rental_custom_css .='.site-footer{';
		$house_rental_custom_css .='background-attachment: scroll;';
	$house_rental_custom_css .='}';
}

// Menu Hover Style	

$house_rental_menus_item = get_theme_mod( 'house_rental_menus_style','None');
if($house_rental_menus_item == 'None'){
	$house_rental_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$house_rental_custom_css .='';
	$house_rental_custom_css .='}';
}else if($house_rental_menus_item == 'Zoom In'){
	$house_rental_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
	$house_rental_custom_css .= 'transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
	$house_rental_custom_css .= '}';
	
	$house_rental_custom_css .= '.main-navigation ul ul li a:hover {';
	$house_rental_custom_css .= 'margin-left: 20px;';
	$house_rental_custom_css .= '}';
}	

// Post Content Alignment

$house_rental_blog_layout_option = get_theme_mod( 'house_rental_blog_layout_option','Left');
if($house_rental_blog_layout_option == 'Left'){
	$house_rental_custom_css .='.post{';
		$house_rental_custom_css .='text-align: left;';
	$house_rental_custom_css .='}';
}elseif ($house_rental_blog_layout_option == 'Right'){
	$house_rental_custom_css .='.post{';
		$house_rental_custom_css .='text-align: right;';
	$house_rental_custom_css .='}';
}elseif ($house_rental_blog_layout_option == 'Center'){
	$house_rental_custom_css .='.post{';
		$house_rental_custom_css .='text-align: center;';
	$house_rental_custom_css .='}';
}