<?php

$vacation_rental_booking_custom_css = "";

		$vacation_rental_booking_theme_pagination_options_alignment = get_theme_mod('vacation_rental_booking_theme_pagination_options_alignment', 'Center');
		if ($vacation_rental_booking_theme_pagination_options_alignment == 'Center') {
			$vacation_rental_booking_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
			$vacation_rental_booking_custom_css .= 'justify-content: center;margin: 0 auto;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_theme_pagination_options_alignment == 'Right') {
			$vacation_rental_booking_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
			$vacation_rental_booking_custom_css .= 'justify-content: right;margin: 0 0 0 auto;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_theme_pagination_options_alignment == 'Left') {
			$vacation_rental_booking_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
			$vacation_rental_booking_custom_css .= 'justify-content: left;margin: 0 auto 0 0;';
			$vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_theme_breadcrumb_enable = get_theme_mod('vacation_rental_booking_theme_breadcrumb_enable',true);
		if($vacation_rental_booking_theme_breadcrumb_enable != true){
			$vacation_rental_booking_custom_css .='nav.breadcrumb-trail.breadcrumbs,nav.woocommerce-breadcrumb{';
				$vacation_rental_booking_custom_css .='display: none;';
			$vacation_rental_booking_custom_css .='}';
		}

		$vacation_rental_booking_theme_breadcrumb_options_alignment = get_theme_mod('vacation_rental_booking_theme_breadcrumb_options_alignment', 'Left');
		if ($vacation_rental_booking_theme_breadcrumb_options_alignment == 'Center') {
			$vacation_rental_booking_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
			$vacation_rental_booking_custom_css .= 'text-align: center !important;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_theme_breadcrumb_options_alignment == 'Right') {
			$vacation_rental_booking_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
			$vacation_rental_booking_custom_css .= 'text-align: Right !important;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_theme_breadcrumb_options_alignment == 'Left') {
			$vacation_rental_booking_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
			$vacation_rental_booking_custom_css .= 'text-align: Left !important;';
			$vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_single_page_content_alignment = get_theme_mod('vacation_rental_booking_single_page_content_alignment', 'left');
		if ($vacation_rental_booking_single_page_content_alignment == 'left') {
			$vacation_rental_booking_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
			$vacation_rental_booking_custom_css .= 'text-align: left !important;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_single_page_content_alignment == 'center') {
			$vacation_rental_booking_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
			$vacation_rental_booking_custom_css .= 'text-align: center !important;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_single_page_content_alignment == 'right') {
			$vacation_rental_booking_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
			$vacation_rental_booking_custom_css .= 'text-align: right !important;';
			$vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_single_post_content_alignment = get_theme_mod('vacation_rental_booking_single_post_content_alignment', 'left');
		if ($vacation_rental_booking_single_post_content_alignment == 'left') {
			$vacation_rental_booking_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
			$vacation_rental_booking_custom_css .= 'text-align: left !important;justify-content: left;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_single_post_content_alignment == 'center') {
			$vacation_rental_booking_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
			$vacation_rental_booking_custom_css .= 'text-align: center !important;justify-content: center;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_single_post_content_alignment == 'right') {
			$vacation_rental_booking_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
			$vacation_rental_booking_custom_css .= 'text-align: right !important;justify-content: right;';
			$vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_menu_text_transform = get_theme_mod('vacation_rental_booking_menu_text_transform', 'Capitalize');
		if ($vacation_rental_booking_menu_text_transform == 'Capitalize') {
		    $vacation_rental_booking_custom_css .= '.site-navigation .primary-menu > li a{';
		    $vacation_rental_booking_custom_css .= 'text-transform: Capitalize !important;';
		    $vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_menu_text_transform == 'uppercase') {
		    $vacation_rental_booking_custom_css .= '.site-navigation .primary-menu > li a{';
		    $vacation_rental_booking_custom_css .= 'text-transform: uppercase !important;';
		    $vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_menu_text_transform == 'lowercase') {
		    $vacation_rental_booking_custom_css .= '.site-navigation .primary-menu > li a{';
		    $vacation_rental_booking_custom_css .= 'text-transform: lowercase !important;';
		    $vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_footer_widget_title_alignment = get_theme_mod('vacation_rental_booking_footer_widget_title_alignment', 'left');
		if ($vacation_rental_booking_footer_widget_title_alignment == 'left') {
			$vacation_rental_booking_custom_css .= 'h2.widget-title{';
			$vacation_rental_booking_custom_css .= 'text-align: left !important;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_footer_widget_title_alignment == 'center') {
			$vacation_rental_booking_custom_css .= 'h2.widget-title{';
			$vacation_rental_booking_custom_css .= 'text-align: center !important;';
			$vacation_rental_booking_custom_css .= '}';
		} else if ($vacation_rental_booking_footer_widget_title_alignment == 'right') {
			$vacation_rental_booking_custom_css .= 'h2.widget-title{';
			$vacation_rental_booking_custom_css .= 'text-align: right !important;';
			$vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_show_hide_related_product = get_theme_mod('vacation_rental_booking_show_hide_related_product',true);
		if($vacation_rental_booking_show_hide_related_product != true){
			$vacation_rental_booking_custom_css .='.related.products{';
				$vacation_rental_booking_custom_css .='display: none;';
			$vacation_rental_booking_custom_css .='}';
		}

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

		$vacation_rental_booking_global_color_1 = get_theme_mod('vacation_rental_booking_global_color_1', '#4083E6'); // Add a fallback if the color isn't set

		if ($vacation_rental_booking_global_color_1) {
			$vacation_rental_booking_custom_css .= ':root {';
			$vacation_rental_booking_custom_css .= '--global-color: ' . esc_attr($vacation_rental_booking_global_color_1) . ';';
			$vacation_rental_booking_custom_css .= '}';
		}

		$vacation_rental_booking_global_color_2 = get_theme_mod('vacation_rental_booking_global_color_2', '#132E41'); // Add a fallback if the color isn't set

		if ($vacation_rental_booking_global_color_2) {
			$vacation_rental_booking_custom_css .= ':root {';
			$vacation_rental_booking_custom_css .= '--global-color-2: ' . esc_attr($vacation_rental_booking_global_color_2) . ';';
			$vacation_rental_booking_custom_css .= '}';
		}

		/*-------------------- Content Font -------------------*/

		$vacation_rental_booking_content_typography_font = get_theme_mod('vacation_rental_booking_content_typography_font', 'Montserrat'); // Add a fallback if the color isn't set

		if ($vacation_rental_booking_content_typography_font) {
			$vacation_rental_booking_custom_css .= ':root {';
			$vacation_rental_booking_custom_css .= '--font-main: ' . esc_attr($vacation_rental_booking_content_typography_font) . ';';
			$vacation_rental_booking_custom_css .= '}';
		}

		/*-------------------- Heading Font -------------------*/

		$vacation_rental_booking_heading_typography_font = get_theme_mod('vacation_rental_booking_heading_typography_font', 'Mansalva'); // Add a fallback if the color isn't set

		if ($vacation_rental_booking_heading_typography_font) {
			$vacation_rental_booking_custom_css .= ':root {';
			$vacation_rental_booking_custom_css .= '--font-head: ' . esc_attr($vacation_rental_booking_heading_typography_font) . ';';
			$vacation_rental_booking_custom_css .= '}';
		}

		
		$vacation_rental_booking_columns = get_theme_mod('vacation_rental_booking_posts_per_columns', 3);
		$vacation_rental_booking_columns = absint($vacation_rental_booking_columns);
		if ( $vacation_rental_booking_columns < 1 || $vacation_rental_booking_columns > 6 ) {
			$vacation_rental_booking_columns = 3;
		}
		$vacation_rental_booking_custom_css .= "
			.site-content .article-wraper-archive {
				grid-template-columns: repeat({$vacation_rental_booking_columns}, 1fr);
			}
		";
		
		$vacation_rental_booking_copyright_alignment = get_theme_mod( 'vacation_rental_booking_copyright_alignment', 'Default' );
		if ( $vacation_rental_booking_copyright_alignment === 'Reverse' ) {
			$vacation_rental_booking_custom_css .= '.site-info .column-row { flex-direction: row-reverse; }';
			$vacation_rental_booking_custom_css .= '.footer-credits { justify-content: flex-end; }';
			$vacation_rental_booking_custom_css .= '.footer-copyright { text-align: right; }';
			$vacation_rental_booking_custom_css .= '.site-info .column.column-3 { text-align: left; }';
		} elseif ( $vacation_rental_booking_copyright_alignment === 'Center' ) {
			$vacation_rental_booking_custom_css .= '.site-info .column-row { flex-direction: column; align-items: center; gap: 15px; }';
			$vacation_rental_booking_custom_css .= '.footer-credits { justify-content: center; }';
			$vacation_rental_booking_custom_css .= '.footer-copyright { text-align: center; }';
			$vacation_rental_booking_custom_css .= '.site-info .column.column-3 { text-align: center; }';
		}

		// FOOTER

		$vacation_rental_booking_footer_widget_background_color = get_theme_mod('vacation_rental_booking_footer_widget_background_color');
		if ($vacation_rental_booking_footer_widget_background_color) {

			$vacation_rental_booking_custom_css .= "
				.footer-widgetarea {
					background-color: ". esc_attr($vacation_rental_booking_footer_widget_background_color) .";
				}
			";
		}

		$vacation_rental_booking_footer_widget_background_image = get_theme_mod('vacation_rental_booking_footer_widget_background_image');
		if ($vacation_rental_booking_footer_widget_background_image) {
			$vacation_rental_booking_custom_css .= "
				.footer-widgetarea {
					background-image: url(" . esc_url($vacation_rental_booking_footer_widget_background_image) . ");
				}
			";
		}

		$vacation_rental_booking_copyright_font_size = get_theme_mod('vacation_rental_booking_copyright_font_size');
		if ($vacation_rental_booking_copyright_font_size) {

			$vacation_rental_booking_custom_css .= "
				.footer-copyright {
					font-size: ". esc_attr($vacation_rental_booking_copyright_font_size) ."px;
				}
			";
		}

		/*-------------------- Menu Color CSS -------------------*/

		$vacation_rental_booking_header_menus_color = get_theme_mod('vacation_rental_booking_header_menus_color');
		if($vacation_rental_booking_header_menus_color != false){
			$vacation_rental_booking_custom_css .='.site-navigation .primary-menu a{';
				$vacation_rental_booking_custom_css .='color: '.esc_attr($vacation_rental_booking_header_menus_color).'!important;';
			$vacation_rental_booking_custom_css .='}';
		}

		$vacation_rental_booking_header_menus_hover_color = get_theme_mod('vacation_rental_booking_header_menus_hover_color');
		if($vacation_rental_booking_header_menus_hover_color != false){
			$vacation_rental_booking_custom_css .='.site-navigation .primary-menu a:hover{';
				$vacation_rental_booking_custom_css .='color: '.esc_attr($vacation_rental_booking_header_menus_hover_color).'!important;';
			$vacation_rental_booking_custom_css .='}';
		}

		$vacation_rental_booking_header_submenus_color = get_theme_mod('vacation_rental_booking_header_submenus_color');
		if($vacation_rental_booking_header_submenus_color != false){
			$vacation_rental_booking_custom_css .='.site-navigation .primary-menu li ul li a{';
				$vacation_rental_booking_custom_css .='color: '.esc_attr($vacation_rental_booking_header_submenus_color).'!important;';
			$vacation_rental_booking_custom_css .='}';
		}

		$vacation_rental_booking_header_submenus_hover_color = get_theme_mod('vacation_rental_booking_header_submenus_hover_color');
		if($vacation_rental_booking_header_submenus_hover_color != false){
			$vacation_rental_booking_custom_css .='.site-navigation .primary-menu li ul li a:hover{';
				$vacation_rental_booking_custom_css .='color: '.esc_attr($vacation_rental_booking_header_submenus_hover_color).'!important;';
			$vacation_rental_booking_custom_css .='}';
		}