<?php

$luxury_hotels_tp_theme_css = '';

$luxury_hotels_tp_color_option = get_theme_mod('luxury_hotels_tp_color_option');

// 1st color
$luxury_hotels_tp_color_option = get_theme_mod('luxury_hotels_tp_color_option', '#FF8F50');
if ($luxury_hotels_tp_color_option) {
  $luxury_hotels_tp_theme_css .= ':root {';
  $luxury_hotels_tp_theme_css .= '--color-primary1: ' . esc_attr($luxury_hotels_tp_color_option) . ';';
  $luxury_hotels_tp_theme_css .= '}';
}

//preloader
$luxury_hotels_tp_preloader_color1_option = get_theme_mod('luxury_hotels_tp_preloader_color1_option');
$luxury_hotels_tp_preloader_color2_option = get_theme_mod('luxury_hotels_tp_preloader_color2_option');
$luxury_hotels_tp_preloader_bg_color_option = get_theme_mod('luxury_hotels_tp_preloader_bg_color_option');

if($luxury_hotels_tp_preloader_color1_option != false){
$luxury_hotels_tp_theme_css .='.center1{';
	$luxury_hotels_tp_theme_css .='border-color: '.esc_attr($luxury_hotels_tp_preloader_color1_option).' !important;';
$luxury_hotels_tp_theme_css .='}';
}
if($luxury_hotels_tp_preloader_color1_option != false){
$luxury_hotels_tp_theme_css .='.center1 .ring::before{';
	$luxury_hotels_tp_theme_css .='background: '.esc_attr($luxury_hotels_tp_preloader_color1_option).' !important;';
$luxury_hotels_tp_theme_css .='}';
}
if($luxury_hotels_tp_preloader_color2_option != false){
$luxury_hotels_tp_theme_css .='.center2{';
	$luxury_hotels_tp_theme_css .='border-color: '.esc_attr($luxury_hotels_tp_preloader_color2_option).' !important;';
$luxury_hotels_tp_theme_css .='}';
}
if($luxury_hotels_tp_preloader_color2_option != false){
$luxury_hotels_tp_theme_css .='.center2 .ring::before{';
	$luxury_hotels_tp_theme_css .='background: '.esc_attr($luxury_hotels_tp_preloader_color2_option).' !important;';
$luxury_hotels_tp_theme_css .='}';
}
if($luxury_hotels_tp_preloader_bg_color_option != false){
$luxury_hotels_tp_theme_css .='.loader{';
	$luxury_hotels_tp_theme_css .='background: '.esc_attr($luxury_hotels_tp_preloader_bg_color_option).';';
$luxury_hotels_tp_theme_css .='}';
}


$luxury_hotels_tp_footer_bg_color_option = get_theme_mod('luxury_hotels_tp_footer_bg_color_option');


if($luxury_hotels_tp_footer_bg_color_option != false){
$luxury_hotels_tp_theme_css .='#footer{';
	$luxury_hotels_tp_theme_css .='background: '.esc_attr($luxury_hotels_tp_footer_bg_color_option).';';
$luxury_hotels_tp_theme_css .='}';
}

 // slider hide css
  $luxury_hotels_slider_arrows = get_theme_mod( 'luxury_hotels_slider_arrows', true);
  if($luxury_hotels_slider_arrows != true){
    $luxury_hotels_tp_theme_css .='.page-template-front-page .headerbox {';
      $luxury_hotels_tp_theme_css .='position:static; background-color:#FF8F50 !important;';
    $luxury_hotels_tp_theme_css .='}';
    $luxury_hotels_tp_theme_css .='.page-template-front-page .headerbox{';
      $luxury_hotels_tp_theme_css .='color:#3c3c3c;';
    $luxury_hotels_tp_theme_css .='}';
  }

// logo tagline color
$luxury_hotels_site_tagline_color = get_theme_mod('luxury_hotels_site_tagline_color');

if($luxury_hotels_site_tagline_color != false){
$luxury_hotels_tp_theme_css .='.logo h1 a, .logo p.site-title a{';
$luxury_hotels_tp_theme_css .='color: '.esc_attr($luxury_hotels_site_tagline_color).';';
$luxury_hotels_tp_theme_css .='}';
}

$luxury_hotels_logo_tagline_color = get_theme_mod('luxury_hotels_logo_tagline_color');
if($luxury_hotels_logo_tagline_color != false){
$luxury_hotels_tp_theme_css .='p.site-description{';
$luxury_hotels_tp_theme_css .='color: '.esc_attr($luxury_hotels_logo_tagline_color).';';
$luxury_hotels_tp_theme_css .='}';
}

// footer widget title color
$luxury_hotels_footer_widget_title_color = get_theme_mod('luxury_hotels_footer_widget_title_color');
if($luxury_hotels_footer_widget_title_color != false){
$luxury_hotels_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
$luxury_hotels_tp_theme_css .='color: '.esc_attr($luxury_hotels_footer_widget_title_color).' !important;';
$luxury_hotels_tp_theme_css .='}';
}

// copyright text color
$luxury_hotels_footer_copyright_text_color = get_theme_mod('luxury_hotels_footer_copyright_text_color');
if($luxury_hotels_footer_copyright_text_color != false){
$luxury_hotels_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
$luxury_hotels_tp_theme_css .='color: '.esc_attr($luxury_hotels_footer_copyright_text_color).';';
$luxury_hotels_tp_theme_css .='}';
}

// header image title color
$luxury_hotels_header_image_title_text_color = get_theme_mod('luxury_hotels_header_image_title_text_color');
if($luxury_hotels_header_image_title_text_color != false){
$luxury_hotels_tp_theme_css .='.box-text h2{';
$luxury_hotels_tp_theme_css .='color: '.esc_attr($luxury_hotels_header_image_title_text_color).';';
$luxury_hotels_tp_theme_css .='}';
}

// menu color
$luxury_hotels_menu_color = get_theme_mod('luxury_hotels_menu_color');
if($luxury_hotels_menu_color != false){
$luxury_hotels_tp_theme_css .='.main-navigation a{';
$luxury_hotels_tp_theme_css .='color: '.esc_attr($luxury_hotels_menu_color).';';
$luxury_hotels_tp_theme_css .='}';
}

//Footer Font Weight
$luxury_hotels_footer_copyright_title_font_weight = get_theme_mod( 'luxury_hotels_footer_copyright_title_font_weight','');
if($luxury_hotels_footer_copyright_title_font_weight == '100'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 100;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '200'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 200;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '300'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 300;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '400'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 400;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '500'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 500;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '600'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 600;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '700'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 700;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '800'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 800;';
$luxury_hotels_tp_theme_css .='}';
}else if($luxury_hotels_footer_copyright_title_font_weight == '900'){
$luxury_hotels_tp_theme_css .='#footer .site-info p {';
    $luxury_hotels_tp_theme_css .='font-weight: 900;';
$luxury_hotels_tp_theme_css .='}';
}