/*
 Theme Name:     LoveYork child theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Noëlle Steegs
 Author URI:     https://noellesteegs.com
 Template:       Divi
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Remove navigation bottom border */
#main-header {
	box-shadow: none;
}

/* Add menu separators */
@media all and (min-width: 1100px) {
	.separator a:before {
		content: '|';
		color: rgba(0,0,0,.3);
		position: absolute;
		right: -15px;
	}
	#menu-item-419 a:before, #menu-item-425 a:before, #menu-item-426 a:before, #menu-item-427 a:before {
		display: none;
	}
}

/* Social media icons */
.facebook-link img, .instagram-link img {
	height: 43px;
}
.facebook-link, .instagram-link {
	top: 17px;
}
.facebook-link {
	padding-right: 5px !important;
}

/* Align menu links with logo */
@media all and (min-width: 1100px) {
	.et_header_style_left #et-top-navigation {
		padding-top: 0px !important;
		margin-top: 2px;
	}
}

/* Remove padding from nav block headings */
.nav-block h2, .nav-block h3, .nav-block h4, .nav-block h5, .nav-block h6 {
	padding-bottom: 0px;
}

/* Style footer credit link */
#footer-info a {
    font-weight: 500;
    text-decoration: underline;
}

/* Remove margin from last columns on mobile */
@media all and (max-width: 980px) {
	.et-last-child {
    	margin-bottom: 0px;
	}
}

/* Remove padding from accommodation listing title */
.accommodation h2 {
	padding: 0px;
}

/* Underline links */
p a {
	text-decoration: underline;
}
.et_pb_button {
	text-decoration: none;
}

/* Change colour of active menu link and hamburger menu */
.page-id-22 #top-menu li.current-menu-item>a, .page-id-22 .et_mobile_menu li.current-menu-item>a, .page-id-22 .mobile_menu_bar:before {
	color: #f57923;
}
.page-id-24 #top-menu li.current-menu-item>a, .page-id-24 .et_mobile_menu li.current-menu-item>a, .page-id-24 .mobile_menu_bar:before {
	color: #ffc801;
}
.page-id-32 #top-menu li.current-menu-item>a, .page-id-32 .et_mobile_menu li.current-menu-item>a, .page-id-32 .mobile_menu_bar:before {
	color: #0099fd;
}
.page-id-259 #top-menu li.current-menu-item>a, .page-id-259 #top-menu li.current-menu-ancestor>a, .page-id-259 .et_mobile_menu li.current-menu-item>a, .page-id-259 .et_mobile_menu li.current-menu-ancestor>a, .page-id-259 .mobile_menu_bar:before {
	color: #429916;
}
.page-id-30 #top-menu li.current-menu-item>a, .page-id-30 .mobile_menu_bar:before {
	color: #a308ac;
}

/* Center footer credits */
#footer-info {
    float: none;
    text-align: center;
}

/* Hide nav social icons on mobile */
@media all and (max-width: 1024px) {
	.menu-item-52, .menu-item-55 {
		display: none;
	}
}

/* Set back to top button color different per page */
.et_pb_scroll_top.et-pb-icon {
	border-radius: 0px;
}
.page-id-18 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(212,54,32,0.75);
}
.page-id-22 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(245,121,35,0.75);
}
.page-id-259 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(66,153,22,0.75);
}
.page-id-24 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(255,200,1,0.75);
}
.page-id-32 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(0,153,253,0.75);
}
.page-id-26 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(29,91,204,0.75);
}
.page-id-30 .et_pb_scroll_top.et-pb-icon {
	background-color: rgba(163,8,172,0.75);
}

/* Correct column stacking order on mobile */
@media all and (max-width: 980px) {
	.custom-row {
  		display: -webkit-box;
  		display: -moz-box;
  		display: -ms-flexbox;
  		display: -webkit-flex;
  		display: flex;
		-webkit-flex-wrap: wrap; /* Safari 6.1+ */
		flex-wrap: wrap;
	}
	.first-on-mobile {
		-webkit-order: 1;
		order: 1;
	}
	.second-on-mobile {
		-webkit-order: 2;
		order: 2;
	}
	.third-on-mobile {
		-webkit-order: 3;
		order: 3;
	}
	.fourth-on-mobile {
		-webkit-order: 4;
		order: 4;
	}
}

/* Remove column bottom margin of specific columns on mobile */
@media all and (max-width: 980px) {
	.marginless {
		margin-bottom: 0px !important;
	}
}

/* Change hamburger menu border colour */
.et_mobile_menu {
	border-color: #666 !important;
}

/* Make our team title background white on mobile */
@media all and (max-width: 980px) {
	.white-bg {
		background-color: #fff !important;
	}
}

/* Make nav block link big and invisible */
.nav-block-link {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	opacity:0;
	z-index: 1;
}

/* Remove padding from the bottom of Accommodation lists */
.accommodation ul {
	padding-left: 18px;
	padding-bottom: 0px;
}

/* Forcer hamburger menu on tablet landscape */
@media only screen and ( max-width:1024px) {
	#et_mobile_nav_menu {
		display: block;
	}
	#top-menu-nav {
		display: none;
	}
	.et_header_style_left .mobile_menu_bar {
		padding-bottom: 50px;
	}
}