<?php 

	$royal_luxury_hotel_custom_style = '';

	// Logo Size
	$royal_luxury_hotel_logo_top_padding = get_theme_mod('royal_luxury_hotel_logo_top_padding');
	$royal_luxury_hotel_logo_bottom_padding = get_theme_mod('royal_luxury_hotel_logo_bottom_padding');
	$royal_luxury_hotel_logo_left_padding = get_theme_mod('royal_luxury_hotel_logo_left_padding');
	$royal_luxury_hotel_logo_right_padding = get_theme_mod('royal_luxury_hotel_logo_right_padding');

	if( $royal_luxury_hotel_logo_top_padding != '' || $royal_luxury_hotel_logo_bottom_padding != '' || $royal_luxury_hotel_logo_left_padding != '' || $royal_luxury_hotel_logo_right_padding != ''){
		$royal_luxury_hotel_custom_style .=' .logo {';
			$royal_luxury_hotel_custom_style .=' padding-top: '.esc_attr($royal_luxury_hotel_logo_top_padding).'px; padding-bottom: '.esc_attr($royal_luxury_hotel_logo_bottom_padding).'px; padding-left: '.esc_attr($royal_luxury_hotel_logo_left_padding).'px; padding-right: '.esc_attr($royal_luxury_hotel_logo_right_padding).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_logo_size = get_theme_mod('royal_luxury_hotel_logo_size');
	if( $royal_luxury_hotel_logo_size != '' ) {
		if($royal_luxury_hotel_logo_size >= 0 && $royal_luxury_hotel_logo_size <= 100) {
			$calculated_width = $royal_luxury_hotel_logo_size * 3.5;
			$royal_luxury_hotel_custom_style .= ' .custom-logo-link img {';
			$royal_luxury_hotel_custom_style .= ' width: ' . esc_attr($calculated_width) . 'px;';
			$royal_luxury_hotel_custom_style .= ' }';
		}
	}

	//layout width
	$royal_luxury_hotel_boxfull_width = get_theme_mod('royal_luxury_hotel_boxfull_width');
	if ($royal_luxury_hotel_boxfull_width !== '') {
		switch ($royal_luxury_hotel_boxfull_width) {
			case 'container':
				$royal_luxury_hotel_custom_style .= ' body, #header, .bottom-header {
					max-width: 1140px;
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'container-fluid':
				$royal_luxury_hotel_custom_style .= ' body, #header, .bottom-header { 
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'none':
				// No specific width specified, so no additional style needed.
				break;
			default:
				// Handle unexpected values.
				break;
		}
	}

	//Menu animation
	$royal_luxury_hotel_dropdown_anim = get_theme_mod('royal_luxury_hotel_dropdown_anim');

	if ( $royal_luxury_hotel_dropdown_anim != '') {
		$royal_luxury_hotel_custom_style .=' .nav-menu ul ul {';
			$royal_luxury_hotel_custom_style .=' animation:'.esc_attr($royal_luxury_hotel_dropdown_anim).' 1s ease;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	//Header color
	$royal_luxury_hotel_hdrbtn_color = get_theme_mod('royal_luxury_hotel_hdrbtn_color');
	$royal_luxury_hotel_hdrbtnbg_color = get_theme_mod('royal_luxury_hotel_hdrbtnbg_color');
	if ( $royal_luxury_hotel_hdrbtn_color != '') {
		$royal_luxury_hotel_custom_style .=' .contact-btn a {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_hdrbtn_color).'; background-color:'.esc_attr($royal_luxury_hotel_hdrbtnbg_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_headerbg_color = get_theme_mod('royal_luxury_hotel_headerbg_color');
	if ( $royal_luxury_hotel_headerbg_color != '') {
		$royal_luxury_hotel_custom_style .=' #header .main-bx{';
			$royal_luxury_hotel_custom_style .=' background-color:'.esc_attr($royal_luxury_hotel_headerbg_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	//Slider color
	$royal_luxury_hotel_slider_title_font_size = get_theme_mod('royal_luxury_hotel_slider_title_font_size');
	if ( $royal_luxury_hotel_slider_title_font_size != '') {
		$royal_luxury_hotel_custom_style .=' #slider h2 {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_slider_title_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_slider_text_font_size = get_theme_mod('royal_luxury_hotel_slider_text_font_size');
	if ( $royal_luxury_hotel_slider_text_font_size != '') {
		$royal_luxury_hotel_custom_style .=' #slider p {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_slider_text_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_slider_opacity = get_theme_mod('royal_luxury_hotel_slider_opacity');
	if ( $royal_luxury_hotel_slider_opacity != '') {
		$royal_luxury_hotel_custom_style .=' #slider .contenbx {';
			$royal_luxury_hotel_custom_style .=' opacity:'.esc_attr($royal_luxury_hotel_slider_opacity).' !important;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_slider_color = get_theme_mod('royal_luxury_hotel_slider_color');

	if ( $royal_luxury_hotel_slider_color != '') {
		$royal_luxury_hotel_custom_style .=' #slider h2 {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_slider_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_slider_text_color = get_theme_mod('royal_luxury_hotel_slider_text_color');

	if ( $royal_luxury_hotel_slider_text_color != '') {
		$royal_luxury_hotel_custom_style .=' #slider p {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_slider_text_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_slider_btn_color = get_theme_mod('royal_luxury_hotel_slider_btn_color');
	$royal_luxury_hotel_slider_btnbg_color = get_theme_mod('royal_luxury_hotel_slider_btnbg_color');
	if ( $royal_luxury_hotel_slider_btn_color != '') {
		$royal_luxury_hotel_custom_style .=' #slider a.read-btn {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_slider_btn_color).'; background-color:'.esc_attr($royal_luxury_hotel_slider_btnbg_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	//Feature color
	$royal_luxury_hotel_featuresecbg_color = get_theme_mod('royal_luxury_hotel_featuresecbg_color');
	if ( $royal_luxury_hotel_featuresecbg_color != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section {';
			$royal_luxury_hotel_custom_style .=' background-color:'.esc_attr($royal_luxury_hotel_featuresecbg_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_feature_icon_size = get_theme_mod('royal_luxury_hotel_feature_icon_size');
	if ( $royal_luxury_hotel_feature_icon_size != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section .hi-icon i {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_feature_icon_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_feature_font_size = get_theme_mod('royal_luxury_hotel_feature_font_size');
	if ( $royal_luxury_hotel_feature_font_size != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section .features-area-data h4 a{';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_feature_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_feature_text_font_size = get_theme_mod('royal_luxury_hotel_feature_text_font_size');
	if ( $royal_luxury_hotel_feature_text_font_size != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section .features-area-data p {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_feature_text_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_feature_icon_color = get_theme_mod('royal_luxury_hotel_feature_icon_color');
	if ( $royal_luxury_hotel_feature_icon_color != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section .hi-icon i {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_feature_icon_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_feature_title_color = get_theme_mod('royal_luxury_hotel_feature_title_color');
	if ( $royal_luxury_hotel_feature_title_color != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section .features-area-data h4 a {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_feature_title_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_feature_text_color = get_theme_mod('royal_luxury_hotel_feature_text_color');
	if ( $royal_luxury_hotel_feature_text_color != '') {
		$royal_luxury_hotel_custom_style .=' #feature-section .features-area-data p {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_feature_text_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	//Service color
	$royal_luxury_hotel_service_image_height = get_theme_mod('royal_luxury_hotel_service_image_height');

	if ( $royal_luxury_hotel_service_image_height != '') {
		$royal_luxury_hotel_custom_style .=' #service-section .service-box img {';
			$royal_luxury_hotel_custom_style .=' height:'.esc_attr($royal_luxury_hotel_service_image_height).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_service_font_size = get_theme_mod('royal_luxury_hotel_service_font_size');
	if ( $royal_luxury_hotel_service_font_size != '') {
		$royal_luxury_hotel_custom_style .=' .service-box .service-content h4 {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_service_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_service_text_font_size = get_theme_mod('royal_luxury_hotel_service_text_font_size');
	if ( $royal_luxury_hotel_service_text_font_size != '') {
		$royal_luxury_hotel_custom_style .=' .service-box p {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_service_text_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}

	$royal_luxury_hotel_service_color = get_theme_mod('royal_luxury_hotel_service_color');

	if ( $royal_luxury_hotel_service_color != '') {
		$royal_luxury_hotel_custom_style .=' .service-box .service-content h4 {';
			$royal_luxury_hotel_custom_style .=' color:'.esc_attr($royal_luxury_hotel_service_color).';';
		$royal_luxury_hotel_custom_style .=' }';
	}

	//footer css
	$royal_luxury_hotel_footer_copy_font_size = get_theme_mod('royal_luxury_hotel_footer_copy_font_size');
	if ( $royal_luxury_hotel_footer_copy_font_size != '') {
		$royal_luxury_hotel_custom_style .=' .site-info p, .site-info a {';
			$royal_luxury_hotel_custom_style .=' font-size:'.esc_attr($royal_luxury_hotel_footer_copy_font_size).'px;';
		$royal_luxury_hotel_custom_style .=' }';
	}