/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

body {
    overflow: visible;
}

/* Header Socials */

.social-header {
	position: absolute;
	top: 1rem;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
	gap: 1.5rem;
	z-index: 99;
}

.social-header img {
	margin: 0 !important;
}

/* Home Blog */

.blog-recent[data-style="classic_enhanced"] .inner-wrap {
	border-radius: 0;
	box-shadow: none;
}

.blog-recent[data-style="classic_enhanced"] .article-content-wrap {
	padding: 20px 0 0 0;
}

.blog-recent[data-style="classic_enhanced"] .meta-category {
	display: none;
}

.blog-recent[data-style="classic_enhanced"] .post-header {
	display: flex;
    flex-direction: column-reverse;
	margin: 0 !important;
}

.blog-recent[data-style="classic_enhanced"] .post-header h3 {
    text-transform: none;
    font-size: 22px;
	color: #11232c !important;
	margin: 0 !important;
}

.blog-recent[data-style="classic_enhanced"] .post-header .meta {
	color: #00a191;
}

.blog-recent[data-style="classic_enhanced"] .excerpt::after {
	content: 'Read more';
	display: inline-block;
	color: #00a191;
	font-weight: bold;
	text-transform: uppercase;
}

/* Masonry blog */

.post-area .posts-container {
	display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3rem;
}

.post-area .posts-container .masonry-blog-item {
	width: auto !important;	
	position: static !important;
}

@media (max-width: 999px) {
	.post-area .posts-container {
		grid-template-columns: repeat(2, auto);
	}
}

@media (max-width: 690px) {
	.post-area .posts-container {
		grid-template-columns: repeat(1, auto);
	}
}
	
/* Form */

.forminator-ui {
    display: flex !important;
    gap: 1rem !important;
	margin-bottom: 0 !important;
}

.forminator-ui .forminator-label {
    display: none !important;
}

.forminator-ui input {
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
	color: #8E9EA9 !important;
}

.forminator-ui input::placeholder {
	color: #8E9EA9 !important;
}

.forminator-ui .forminator-button-submit {
    background: #11232c !important;
    border-radius: 0 !important;
    font-family: Poppins !important;
    text-transform: uppercase!important;
    letter-spacing: 3px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    width: auto !important;
    max-width: none !important;
	color: #fff;
}

.forminator-ui .forminator-row:not(.forminator-row-last) {
    flex: 1;
}

.form-dark .forminator-ui .forminator-button-submit {
    background: #00a191 !important;
}

@media (max-width: 600px) {
    
    .forminator-ui {
        display: block !important;
    }
}

.nectar-slider-wrap.loaded .swiper-slide .content {
    max-width: 725px;
}

.icon-img {
    max-height: 40px;
}

.icon-img-med {
    max-height: 70px;
}

.img-logo {
    max-height: 55px;
    width: auto;
}

.nectar-milestone span {
    font-weight: bold;
}

.home-icon-bg-large .using-image {
    background-size: contain !important;
}

blockquote {
    padding: 0;
}

blockquote::before {
    display: none;
}

.flickity-viewport {
    margin: 0 !important;
}

.flickity-page-dots {
    bottom: -10px !important;
}

.nectar-split-heading {
    margin-bottom: 0 !important;
}

body [class*="icon-"] {
	background: none !important;
}

.text-green {
	color: #00a191;
}

/* Footer */

.before-footer ul.menu {
    margin: 0;
    padding: 0;
}

.before-footer ul.menu li {
    list-style: none !important;
}


@media(min-width: 991px) {
    #footer-outer .span_5 {
        width: 100% !important;
        margin: 0 !important;
    }

    #footer-outer .span_5 p {
        display: inline-block;
        color: #02293d;
    }

    #footer-outer .span_5 .designedby {
        float: right;
    }
}

/* Map */

.tf-map-container {
    position: relative;
    overflow: hidden;
}

.tf-map-container *::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.tf-map-container .loading {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 9999;
}

.tf-map-container .loading i {
    font-size: 50px;
    color: #00a191;
}

.tf-map-container .tf-map-container__map {
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    touch-action: pan-x pan-y pinch-zoom;
}

    /* Map intro */

    .tf-map-container__intro {
        position: sticky;
        top: 0;
        z-index: 99;
        background: #072d3e;
        display: flex;
        align-items: center;
        padding: 3rem 150px;
        gap: 10px;
    }

    .tf-map-container__intro .tf-map-container__intro-col {
        width: 40%;
    }

    .tf-map-container__intro .tf-map-container__intro-col:last-of-type {
        width: 60%;
    }

    .tf-map-container__intro .tf-map-container__intro-col :is(h1, h2, h3, h4, h5, h6) {
        color: #fff;
    }

    .tf-map-container__intro .tf-map-container__intro-col h5 {
        font-weight: 300;
        letter-spacing: 3px;
        font-size: 18px;
    }

    .tf-map-container__intro .tf-map-container__intro-col h1 {
        color: #00a191;
        letter-spacing: 1px;
        font-size: 20px;
        font-weight: 600;
    }

    .tf-map-container__intro .tf-map-container__intro-col h5:last-of-type {
        margin-block-end: 0;
    }

    /* Map filters */

    .tf-map-container .tf-map-container__map-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: flex-start;
    }

    .tf-map-container .tf-map-container__map-filter button {
        font-size: 12px;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 2px;
        border-radius: 0;
        border: 2px solid rgba(255, 255, 255, 0.25);
        color: #fff;
        background: transparent;
        padding: 3px 15px;
    }

    .tf-map-container .tf-map-container__map-filter button i {
        font-size: 12px;
    }

    .tf-map-container .tf-map-container__map-filter button.active,
    .tf-map-container .tf-map-container__map-filter button:hover {
        cursor: pointer;
        color: #00a191;
        border-color: #00a191;
    }

    .tf-map-container .tf-map-container__map-filter button:hover {
        background: #00a191;
        color: #fff;
    }

    /* Map layers */

    .tf-map-container__map-areas-wrapper {
        position: relative;
        overflow: hidden; /* Keep content contained */
        width: 100%;
        height: 100%;
        /*touch-action: none; Disable browser's default touch actions */
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas {
        display: grid;
        place-content: center;
        transform-origin: center;
        position: relative;
        /*touch-action: none; Changed from pan-x pan-y pinch-zoom */
        overflow: visible; /* Changed from scroll */
        will-change: transform; /* Performance optimization */
        transition: transform 0.05s ease-out; /* Optional: small transition for smoother dragging */
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas > * {
        grid-area: 1 / 1;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas img.tf-map-container__map-land {
        width: 100vw !important;
        pointer-events: none;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map {
        height: 100%;
        width: 100%;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map [data-id]:not(.tf-map-partners-ports) {
        display: none;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map [data-id].active {
        display: block;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map .tf-map-clickable {
        cursor: pointer;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map .hidden {
        opacity: 0;
        pointer-events: none;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map .tf-map-m25 {
        fill: transparent;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map .tf-map-borough-barking g path:not([class]),
    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map .tf-map-borough-havering g path:not([class]),
    .tf-map-container .tf-map-container__map .tf-map-container__map-areas svg.tf-map .tf-map-borough-thurrock g path:not([class])  {
        fill: #C0C2B9;
    }

    /* Map zoom */

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom {
        position: absolute;
        bottom: 20px;
        right: 20px;
        z-index: 10;
        display: flex;
        gap: 5px;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-reset,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-in,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-out {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        width: 32px;
        font-size: 16px;
        font-weight: bold;
        background: #00a191;
        color: #fff;
        border: none;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-reset {
        width: auto;
        padding-inline: 10px;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-reset:hover,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-in:hover,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-out:hover {
        cursor: pointer;
        background: #02293d;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-reset:disabled,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-in:disabled,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-out:disabled {
        background: #8E9EA9;
        opacity: .75;
        cursor: not-allowed;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-in i,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-out i {
        top: 0;
        pointer-events: none;
    }

    /* Map key */

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key {
        padding-block: 15px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: absolute;
        bottom: 20px;
        left: 20px;
        z-index: 10;
        background: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li {
        list-style: none;
        display: flex;
        justify-content: space-between;
        padding: 2.5px 0 2.5px 5px;
        margin-inline: 15px;
        column-gap: 10px;
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li.desc {
        margin-block-end: 10px;
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li[data-id] {
        cursor: pointer;
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li[data-id]:hover,
    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li[data-id].active {
        background: var(--term-color);
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li[data-id].active .tf-map-container__map-key-name,
    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li[data-id]:hover .tf-map-container__map-key-name {
        color: #fff;
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li .tf-map-container__map-key-name {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
        line-height: 1.2em;
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key li .tf-map-container__map-key-color {
        width: 15px;
        background: var(--term-color);
        display: flex;
    }

    /* Map marker */

    .tf-map-container .tf-map-container__map .tf-map-marker-pin {
        display: none;
        position: absolute;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 40px;
        color: #fff;
        background: var(--term-color);
        font-weight: bold;
        font-size: 20px;
        cursor: pointer;
        /* transition: all 0.3s ease-in-out; */
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin::after {
        content: '';
        display: block;
        position: absolute;
        bottom: -20px;
        width: 0px;
        height: 0px;
        left: 0;
        right: 0;
        margin: auto;
        border-style: solid;
        border-width: 20px 5px 0 5px;
        border-color: var(--term-color) transparent transparent transparent;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin.active {
        display: flex;
    }

    /* Marker marker modal */

    .tf-map-container .tf-map-container__map .tf-map-marker-modal {
        display: none;
        background: #fff;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        margin: auto;
        max-width: 90%;
        max-height: 60%;
        overflow-y: scroll;
        width: 500px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .wpb_row {
        margin-block-end: 0;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal.active {
        display: block;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px 5px 15px;
        background: var(--term-color);
        position: sticky;
        top: 0;
        z-index: 12;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal header h3 {
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        margin: 0;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal header span {
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        margin: 0;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal header .tf-map-marker-modal__close {
        height: 20px;
        width: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 0;
        color: #072d3e;
        border: none;
        cursor: pointer;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal header .tf-map-marker-modal__close i {
        top: -1px;
        font-size: 12px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content {
        padding: 15px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content img.tf-map-marker-modal__logo {
        max-height: 50px;
        margin-block-end: 20px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content img.wp-post-image {
        width: 100%;
        margin-block-end: 20px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content h3 {
        font-size: 18px;
        line-height: 1.2em;
        font-weight: bold;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content h5 {
        font-weight: bold;
        font-size: 14px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content p {
        font-size: 14px;
        line-height: 1.4em;
        padding-bottom: 1em;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal .tf-map-marker-modal__content img:not(.wp-post-image) {
        height: 50px !important;
        width: auto !important;
        max-width: 100%;
        object-fit: contain;
    }

@media (max-width: 999px) {
    .tf-map-container .tf-map-container__intro {
        padding-inline: 28px;
    }
}

@media (min-width: 768px) {

    /* Roads pin */

    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads {
        pointer-events: none;
        background: #fff;
        color: #072d3e;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        height: auto;
        width: 300px;
        flex-direction: column;
        padding: 15px;
        font-weight: 400;
        font-size: 14px;
        line-height: 1.4em;
        align-items: flex-start;
        position: absolute;
        z-index: 10;
        transform: translate(-50%, -100%);
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads::after {
        bottom: -15px;
        border-width: 15px 10px 0 10px;
        border-color: #fff transparent transparent transparent;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads .num {
        display: none;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads h3 {
        font-size: 16px;
        letter-spacing: 0;
        margin: 0;
    }
}

@media (max-width: 767px) {

    .tf-map-container .tf-map-container__intro {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 20px;
        position: static;
    }

    .tf-map-container .tf-map-container__intro .tf-map-container__intro-col {
        width: 100%;
    }

    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key {
        display: block;
        position: static;
        width: 100%;
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
        order: 1;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom {
        top: 5px;
        right: 5px;
        flex-direction: column;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-in i,
    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-out i {
        left: -6px;
    }

    .tf-map-container .tf-map-container__map .tf-map-container__map-zoom .tf-map-container__map-zoom-reset {
        display: none;
    }

    .tf-map-container .tf-map-container__map-filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .tf-map-container .tf-map-container__map-filter button {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        max-height: 100%;
        max-width: 100%;
        width: 100%;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-modal header .tf-map-marker-modal__close i {
        left: -4px;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads h3,
    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads p {
        display: none;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin::after,
    .tf-map-container .tf-map-container__map .tf-map-marker-pin.roads::after {
        display: none;
    }
}

@media (max-width: 690px) {
    .tf-map-container .tf-map-container__map ul.tf-map-container__map-key {
        display: flex;
    }

    .tf-map-container .tf-map-container__map .tf-map-marker-pin {
        height: 18px;
        width: 18px;
        font-size: 10px;
    }
}