﻿/*
Theme Name: Salient Child Theme
Description: Child theme for Salient - Bookmycamp Customization
Author: Antigravity
Template: salient
Version: 1.0.0
*/

:root {
    --bmc-primary: #FF4E00;
    /* Sunset Orange */
    --bmc-secondary: #000000;
    --bmc-white: #FFFFFF;
    --bmc-font-heading: 'Space Grotesk', sans-serif;
    --bmc-font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--bmc-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nectar-header-2 {
    font-family: var(--bmc-font-heading) !important;
}

.bmc-sticky-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bmc-cta-button {
    background-color: var(--bmc-primary);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.bmc-cta-button:hover {
    background-color: #e64600;
}

/* BookMyCamp Custom Header Buttons */
.bmc-custom-menu-item a {
    padding: 0 15px !important;
    font-weight: 600 !important;
}

.bmc-login-btn {
    background-color: #f75d35 !important;
    /* Orange color */
    color: #fff !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.bmc-login-btn:hover {
    background-color: #e04e28 !important;
    /* Darker orange on hover */
    color: #fff !important;
}

/* Ensure buttons align correctly in the menu */
#top nav ul.buttons li.bmc-custom-menu-item {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* =========================================
   BookMyCamp Homepage Improvements
   ========================================= */

/* Mobile Responsiveness Fixes */
@media only screen and (max-width: 900px) {

    /* Hero Section */
    #bmc-hero h1,
    .vc_custom_heading {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    /* Popular in India Grid - Fixed 2 columns */
    .vc_col-sm-1\/5,
    .vc_col-sm-2 {
        width: 50% !important;
        float: left !important;
        padding: 10px !important;
    }

    /* Fix Icon sizes on mobile */
    .nectar_icon_wrap i {
        font-size: 40px !important;
        line-height: 50px !important;
        height: 50px !important;
        width: 50px !important;
    }

    .nectar_icon_wrap {
        margin-bottom: 5px !important;
    }

    /* Adjust headings in grid */
    .wpb_text_column h5,
    .wpb_text_column h4 {
        font-size: 16px !important;
    }

    /* Search Bar */
    .bmc-search-container {
        flex-direction: column;
        padding: 15px !important;
    }

    .bmc-search-container input {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .bmc-search-container button {
        width: 100% !important;
    }
}

/* Header Adjustments */
#header-outer #top nav>ul>li.bmc-custom-menu-item>a {
    margin-left: 15px !important;
}

/* Desktop Grid Alignment for 5 items */
@media only screen and (min-width: 901px) {
    .vc_col-sm-1\/5 {
        width: 20%;
        float: left;
    }
}

/* =========================================
   BookMyCamp UI/UX Pro Max Polishing
   ========================================= */

/* Hover effect for destination cards */
.bmc-destination-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.bmc-destination-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Homepage Category Cards (Stay Types) Clickable */
.flickity-slider .cell,
.bmc-cat-card {
    cursor: pointer !important;
}

/* Header Spacing Polish */
#header-outer #top nav>ul>li.bmc-custom-menu-item {
    margin-left: 10px !important;
}

/* WPBakery Shortcode Fixes (Replacing invalid inline css attributes) */
.bmc-dest-heading {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
}

.bmc-testi-subheading {
    margin-bottom: 10px !important;
    letter-spacing: 2px !important;
}

.bmc-testi-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
}

#header-outer #top nav>ul>li.bmc-custom-menu-item:last-child {
    margin-left: 15px !important;
}

/* Testimonial Content Polish */
.vc_custom_testimonial_content p {
    font-weight: 400 !important;
}

/* =========================================
   Corporate Outings Form Polish (Contact Form 7)
   ========================================= */
.custom-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    text-align: left;
    margin-top: 20px;
}

.bmc-cf7-wrapper {
    width: 100%;
    font-family: "Space Grotesk", sans-serif;
    text-align: left;
}

.bmc-cf7-wrapper .cf7-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.bmc-cf7-wrapper .cf7-row.cf7-full {
    margin-bottom: 30px;
}

.bmc-cf7-wrapper .cf7-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bmc-cf7-wrapper label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.bmc-cf7-wrapper label i {
    margin-right: 5px;
    color: #666;
    font-size: 14px;
}

.bmc-cf7-wrapper input[type="text"],
.bmc-cf7-wrapper input[type="email"],
.bmc-cf7-wrapper input[type="tel"],
.bmc-cf7-wrapper input[type="number"],
.bmc-cf7-wrapper input[type="date"],
.bmc-cf7-wrapper textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    display: block;
    margin-top: 0;
}

.bmc-cf7-wrapper input::placeholder,
.bmc-cf7-wrapper textarea::placeholder {
    color: #999;
}

.bmc-cf7-wrapper input:focus,
.bmc-cf7-wrapper textarea:focus {
    border-color: #E85D25;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 93, 37, 0.1);
}

.bmc-cf7-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.bmc-cf7-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.bmc-cf7-wrapper .cf7-submit-row {
    text-align: center;
    margin-bottom: 20px;
}

.bmc-cf7-wrapper button.wpcf7-submit {
    background: #E85D25;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-family: "Space Grotesk", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bmc-cf7-wrapper button.wpcf7-submit:hover {
    background: #D04F1D;
}

.bmc-cf7-wrapper button.wpcf7-submit i {
    margin-right: 8px;
}

.bmc-cf7-wrapper .cf7-privacy-notice {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 15px;
}

.wpcf7-spinner {
    display: none !important;
}

.wpcf7-response-output {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Override WPAutoP generated br and p elements */
.bmc-cf7-wrapper br {
    display: none;
}

.bmc-cf7-wrapper p {
    margin: 0;
    padding: 0;
    display: inline;
}

.bmc-cf7-wrapper>p:empty {
    display: none !important;
}

.wpcf7 form.init .wpcf7-response-output {
    display: none;
}

@media(max-width: 768px) {
    .custom-form-wrapper {
        padding: 30px 20px;
    }

    .bmc-cf7-wrapper .cf7-row {
        gap: 20px;
        flex-direction: column;
        margin-bottom: 20px;
    }
}

/* Prevent Menu Items from Wrapping to Two Lines */
#header-outer #top nav>ul>li>a,
#header-outer #top nav>ul>li {
    white-space: nowrap !important;
}

/* BookMyCamp Header Buttons Polish */
.bmc-custom-menu-item a.bmc-login-btn,
.bmc-custom-menu-item a.bmc-host-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    line-height: normal !important;
    height: auto !important;
    /* Removing fixed height to rely on padding */
    box-sizing: border-box !important;
    margin-right: 10px !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
}

/* Become a Host Button */
.bmc-custom-menu-item a.bmc-host-btn {
    background-color: #FFF5F0 !important;
    color: #E85D25 !important;
}

.bmc-custom-menu-item a.bmc-host-btn:hover {
    background-color: #FFE4D6 !important;
    color: #D04F1D !important;
}

/* Login / Signup Button */
.bmc-custom-menu-item a.bmc-login-btn {
    background-color: #E85D25 !important;
    color: #ffffff !important;
}

.bmc-custom-menu-item a.bmc-login-btn:hover {
    background-color: #D04F1D !important;
}

/* =========================================
   My Profile Dropdown UI Polish 
   ========================================= */

#header-outer #top nav>ul>li.bmc-custom-menu-item.menu-item-has-children {
    position: relative;
}

#header-outer #top nav>ul>li.bmc-custom-menu-item .sub-menu {
    display: block !important;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0 !important;
    margin-top: 15px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: visibility 0s 0.3s, opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Invisible hover bridge */
#header-outer #top nav>ul>li.bmc-custom-menu-item .sub-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

#header-outer #top nav>ul>li.bmc-custom-menu-item.menu-item-has-children:hover .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#header-outer #top nav>ul>li.bmc-custom-menu-item .sub-menu li {
    display: block;
    width: 100%;
    opacity: 1 !important;
    height: auto !important;
    line-height: normal !important;
}

#header-outer #top nav>ul>li.bmc-custom-menu-item .sub-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #444 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: background 0.2s, color 0.2s !important;
    text-align: left;
    height: auto !important;
    line-height: normal !important;
    border-bottom: none !important;
    margin: 0 !important;
    white-space: normal !important;
}

#header-outer #top nav>ul>li.bmc-custom-menu-item .sub-menu li a:hover {
    background: rgba(232, 93, 37, 0.05) !important;
    color: #E85D25 !important;
}

/* Arrow pointing up */
#header-outer #top nav>ul>li.bmc-custom-menu-item .sub-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   Menu Bar Font Size Polish 
   ========================================= */
#header-outer #top nav>ul>li>a {
    font-size: 17px !important;
}