/*!
Theme Name: Kadence Child
Theme URI: https://bowdenworks.com
Template: kadence
Author: Bowden Works
Author URI: https://bowdenworks.com
Description: Kadence child theme
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/*==================================
  HEADER CUSTOMIZATION
==================================*/

/* Header Structure */
.site-header-section-right {
    justify-content: center;
}
.site-header-section {
    flex-direction: column;
    row-gap: 15px;
}
.site-header-section-right .site-header-item {
    align-content: flex-end;
    flex-direction: column;
    flex-wrap: wrap;
    margin-right: 0px;
}
.kadence-sticky-header.item-is-stuck .site-header-section-right{
	padding-bottom: 18px!important;
}

/* Primary Menu Styling */
header #primary-menu li {
    border-right: 1px solid var(--global-palette9);
}
header #primary-menu li:last-child {
    border-right: none;
}
.kadence-sticky-header.item-is-stuck #primary-menu li {
    border-right: 1px solid var(--global-palette4);
}
.kadence-sticky-header.item-is-stuck #primary-menu li:last-child {
    border-right: none;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a {
    padding-top: 0!important;
    padding-bottom: 0!important;
}

/* Secondary Navigation */
nav#secondary-navigation ul#secondary-menu {
    column-gap: 6px;
}
nav#secondary-navigation ul#secondary-menu li a {
    border: solid 1px var(--global-palette9);
    border-radius: 4px;
    padding: 2px 30px;
    line-height: 2.2;
}
nav#secondary-navigation ul#secondary-menu li a:hover {
    background: var(--global-palette3);
    border-color: var(--global-palette3);
    border-radius: 4px;
    color: var(--global-palette9);
}
.kadence-sticky-header.item-is-stuck nav#secondary-navigation ul#secondary-menu a {
    border: solid 1px var(--global-palette3);
    border-radius: 4px;
}

/* Header Buttons Styling */
.bw-header-book-now-btn a {
    background: var(--global-palette1);
    border-color: var(--global-palette1)!important;
    border-radius: 4px;
}
.bw-header-book-now-btn a:hover {
    border-color: var(--global-palette3)!important;
}
.kadence-sticky-header.item-is-stuck .bw-header-book-now-btn a {
    color: var(--global-palette9)!important;
}

.bw-header-offer-now-btn a {
    background: var(--global-palette1);
    border-color: var(--global-palette3)!important;
    background-color: var(--global-palette3)!important;
    border-radius: 4px;
}
.bw-header-offer-now-btn a:hover {
    border-color: var(--global-palette3)!important;
}
.kadence-sticky-header.item-is-stuck .bw-header-offer-now-btn a {
    color: var(--global-palette9)!important;
}

/* Home Icon Styling */
.bw-home-icon a {
    padding-left: 10px!important;
    padding-right: 10px!important;
}
.kadence-sticky-header.item-is-stuck .bw-home-icon a .menu-label-icon svg {
    fill: var(--global-palette3);
}
.kadence-sticky-header.item-is-stuck .bw-home-icon a:hover .menu-label-icon svg {
    fill: var(--global-palette9);
}

/* Sticky Header */
.kadence-sticky-header.item-is-stuck {
    box-shadow: 0px 0px 6px 1px rgba(34, 34, 34, 0.2);
}

/*==================================
  MOBILE HEADER & MENU
==================================*/

/* Mobile Menu Drawer */
.popup-drawer .drawer-content {
    text-align: center;
}
.drawer-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px;
}

/* Mobile Navigation Styling */
.mobile-navigation ul li.current-menu-item > a {
    border-bottom: 2px solid #fff;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Secondary Menu */
#mobile-secondary-site-navigation {
    text-align: center;
}
#mobile-secondary-menu {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
#mobile-secondary-site-navigation ul li:not(.menu-item-has-children) a {
    width: 140px;
    border: 1px solid #fff;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    padding: 7px 0;
}

/*==================================
  FOOTER STYLING
==================================*/

/* Footer Contact List */
.bw-footer-contact {
    list-style-type: none;
}
.bw-footer-contact li {
    display: inline-block;
    border-left: 1px #fff solid;
    padding: 0 12px;
}
.bw-footer-contact li:first-child {
    border: none;
}
.bw-footer-contact li:last-child {
    padding-right: 0px;
}

/* Footer Menu */
.bw-footer-menu li {
    display: inline-block;
    border-left: 1px #fff solid;
    padding: 0 12px;
    text-transform: uppercase;
    font-size: 12px;
}
.bw-footer-menu li:first-child {
    border: none;
}
.bw-footer-menu li:last-child {
    padding-right: 0px;
}

/* Footer Social Icons */
.bw-footer-social-icons {
    font-size: 18px!important;
}

/*==================================
  FORMS & NEWSLETTER
==================================*/

/* Contact Form */
.bw-theshoreclub-form input:not(.gform_button), 
.bw-theshoreclub-form textarea {
    font-size: 14px!important;
    background-color: transparent;
    text-transform: uppercase;
    border: 0;
    border-bottom: 1px solid #58595b;
}
.bw-theshoreclub-form .gform_footer {
    justify-content: flex-end;
    margin-top: 45px!important;
}

/* Newsletter Form */
.bw-theshoreclub-newsletter-form label {
    font-size: 12px!important;
    text-transform: uppercase;
}
.bw-theshoreclub-newsletter-form input {
    background: transparent;
    border-radius: 0px;
    border-color: rgba(255, 255, 255, 0.7);
    color: white!important;
}
.bw-theshoreclub-newsletter-form input:focus {
    border-color: var(--global-palette9)!important;
}
.bw-theshoreclub-newsletter-form .gform_button {
    position: absolute!important;
    right: 10px!important;
    top: 36px!important;
    width: 26px!important;
}
.bw-newsletter-form .gform-button {
    height: 100%!important;
}

/*==================================
  BLOG & ARCHIVES
==================================*/

/* Blog Loop Entries */
.loop-entry .entry-content-wrap {
    padding: 1.5rem;
}
.grid-cols {
    column-gap: 1.5rem;
    row-gap: 1.5rem;
}

/* Sidebar Navigation */
#secondary .widget_nav_menu a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    position: relative;
    color: #77736c;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}
#secondary .current-menu-item a {
    color: var(--global-palette1);
}
#secondary .post-type-archive-news-release #menu-item-7398 a, 
.single-news-release #menu-item-7398 a {
    color: var(--global-palette1)!important;
}

/* Media Clip Archive */
.post-type-archive-media-clip .swp_social_panel {
    display: none;
}

/*==================================
  THE SUITES PAGE
==================================*/

/* Filter Styles */
.bw-thesuites-filter select {
    padding: 7px 24px!important;
    text-align: center!important;
}
.bw-thesuites-filter select:hover {
    cursor: pointer;
}
.bw-thesuites-query .wp-block-kadence-query-card .overlay {
    background-image: url('/wp-content/uploads/2025/03/logo-loading.gif') !important;
}

/* Card Flip Effect */
.bw-thesuites-card {
    position: relative;
    width: 100%;
    height: auto;
}
.bw-thesuites-card-front {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    background: lightblue;
}
.kb-query-item .bw-thesuites-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}
.bw-thesuites-card-back {
    opacity: 0;
    background: lightcoral;
}
.bw-thesuites-card:hover .bw-thesuites-card-front {
    opacity: 0;
}
.bw-thesuites-card:hover .bw-thesuites-card-back {
    opacity: 1;
}

/* Card Thumb Hover */
.bw-thesuites-thumb:hover + .bw-thesuites-card .bw-thesuites-card-front {
    opacity: 0;
}
.bw-thesuites-thumb:hover + .bw-thesuites-card .bw-thesuites-card-back {
    opacity: 1;
}

/*==================================
  BLOCK STYLES
==================================*/

/* Default Title Block */
.bw-default-title {
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--global-palette3, #2B6CB0);
}
.bw-default-title.has-text-align-center {
    text-align: center;
}
.bw-default-title.has-text-align-right {
    text-align: right;
}
.bw-default-title.has-text-align-left {
    text-align: left;
}

/* Tabordion Block */
.bw-tabordion-content, 
.bw-tabordion-tab {
    background: transparent!important;
}

/* Interactive Map Block */
.bw-interactive-map {
    margin-bottom: 0px!important;
}

/* Kadence Advanced Slider */
.kb-advanced-slider .slick-prev:before, 
.kb-advanced-slider .slick-next:before {
    display: none;
}
.kb-advanced-slider .slick-prev, 
.kb-advanced-slider .slick-next {
    border-radius: 0px;
    background: var(--global-palette1);
    opacity: 1!important;
}
.kb-advanced-slider .slick-prev:hover, 
.kb-advanced-slider .slick-next:hover {
    background: var(--global-palette3);
}
.kb-advanced-slider .kb-splide .splide__arrow {
    width: 3em;
}
.kb-advanced-slider .splide__arrows {
    gap: 0.5em!important;
}
.kb-advanced-slider .kb-splide .splide__arrow:focus {
    background: var(--global-palette3);
}

/*==================================
  HERO & INTERACTIVE ELEMENTS
==================================*/

/* Hero Scroll Down Caret */
.bw_hero_caret_down {
    position: relative !important;
}
.bw_hero_caret_down::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}
.scrolldown {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600!important;
    text-decoration: none !important;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.scrolldown:hover {
    opacity: 1;
    color: #ffffff !important;
}
.scrolldown .caret-icon {
    margin-top: 10px;
    width: 36px;
    height: 18px;
    position: relative;
}
.scrolldown .caret-icon svg {
    width: 100%;
    height: 100%;
}

/* Image Zoom on Section Hover */
.bw-row-hover:hover .kb-img {
    transform: scale(1.05);
    transition: transform 0.8s ease;
}
.bw-row-hover .kb-img {
    transition: transform 0.8s ease;
    will-change: transform;
}
.bw-row-hover .kb-is-ratio-image {
    overflow: hidden;
}
.bw-row-hover:hover .wp-block-kadence-singlebtn {
    color: var(--global-palette2) !important;
}

/* Social Icons */
.wp-block-social-link:hover {
    transform: unset;
}

/*==================================
  LOCAL EVENTS STYLING
==================================*/

/* Container for all events */
.local-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Row layout for each event */
.local-event-row {
    display: flex;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
}

/* Left column - Event Image */
.local-event-image-col {
    flex: 0 0 390px;
    width: 390px;
    position: relative;
}
.local-event-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.local-event-image-link {
    display: block;
    height: 100%;
}
.placeholder-image {
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-image:after {
    content: "No Image";
    color: #888;
    font-size: 14px;
}

/* Right column - Event Info */
.local-event-info-col {
    flex: 1;
    background-color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 280px;
    overflow: hidden;
}

/* Event Date */
.local-event-date {
    font-size: 12px;
    color: #838485;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Event Title */
.local-event-title {
    font-size: 32px;
    font-weight: 400;
    color: #ff7760;
    margin: 0 0 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Event Description */
.local-event-description {
    font-size: 15px;
    line-height: 1.6;
    color: #58595b;
    margin-bottom: 20px;
    flex: 1;
   /* overflow: hidden; */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* VIEW link */
.local-event-view-link {
    font-size: 13px;
    color: #ff7760 !important;
    text-decoration: none !important;
    font-weight: 500;
    align-self: flex-start;
    margin-top: auto;
    transition: color 0.3s ease;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    display: inline-block;
}
.local-event-view-link:hover {
    color: #58595b !important;
    text-decoration: none !important;
    background: none !important;
}
a.local-event-view-link.local-event-image-link {
    display: inline-block;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
.view-arrow {
    font-size: 16px;
    line-height: 1;
    position: relative;
    top: 1px;
}

/* View All Events Link */
.view-all-events {
    text-align: center;
    margin-top: 40px;
}
.view-all-link {
    display: inline-block;
    color: #ff7760 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.view-all-link:hover {
    color: #58595b !important;
    text-decoration: none;
}

/* Pagination for archive page */
.pagination {
    margin: 40px 0;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}
.page-numbers.current {
    background-color: #ff7760;
    color: white;
    border-color: #ff7760;
}
.page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* No Events Message */
.no-events-message {
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 18px;
    color: #666;
}

/* Single Event Page */
.local-event-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}
.local-event-header {
    text-align: center;
    margin-bottom: 30px;
}
.local-event-single .local-event-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #ff7760;
    text-transform: uppercase;
    font-weight: 400;
}
.local-event-single .local-event-date {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #838485;
}
.local-event-content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}
.local-event-poster {
    flex: 0 0 40%;
}
.local-event-poster img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.local-event-content {
    flex: 0 0 60%;
}
.local-event-single .local-event-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    line-height: 1.6;
    color: #58595b;
}
.local-event-main-content {
    font-size: 16px;
    line-height: 1.7;
    color: #58595b;
}
.local-event-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    margin-top: 30px;
}
.event-nav-previous a,
.event-nav-next a,
.event-nav-back a {
    color: #ff7760 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.event-nav-previous a:hover,
.event-nav-next a:hover,
.event-nav-back a:hover {
    color: #58595b !important;
    text-decoration: none;
}

/* Local Events Custom Lightbox styles */
.bw-events-lightbox-active .sl-overlay {
    background: rgba(0, 0, 0, 0.85);
    z-index: 999990;
}
.bw-events-sl-wrapper {
    z-index: 999992 !important;
}
.sl-wrapper .sl-image,
.bw-events-sl-wrapper .sl-image,
.sl-overlay ~ .sl-wrapper .sl-image {
    border: 5px solid white !important;
    background: white !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 999993 !important;
}
.bw-events-sl-wrapper .sl-image img {
    display: block !important;
    margin: 0 !important;
    border: none !important;
    max-width: 100% !important;
}
.sl-wrapper .sl-close,
.bw-events-sl-wrapper .sl-close,
.sl-overlay ~ .sl-wrapper .sl-close {
    font-size: 22px !important;
    color: white !important;
    background: rgba(0, 0, 0, 0.7) !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 25px !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    z-index: 999995 !important;
    position: absolute !important;
    right: -12px !important;
    top: -12px !important;
    font-weight: bold !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.bw-events-sl-wrapper .sl-close:hover {
    background: #000 !important;
}
.bw-events-sl-wrapper .sl-navigation {
    display: none !important;
}
.bw-events-sl-wrapper .sl-counter {
    display: none !important;
}
.bw-events-lightbox-active,
html.slbActive {
    overflow: hidden !important;
}
.bw-events-sl-wrapper *,
.sl-wrapper * {
    box-sizing: border-box !important;
}
.sl-wrapper .sl-navigation,
.sl-wrapper .sl-counter {
    display: none !important;
}
.sl-wrapper .sl-close {
    z-index: 9999999 !important;
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/*==================================
  RESPONSIVE STYLES
==================================*/

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .local-event-row {
        flex-direction: row;
    }
    .local-event-image-col {
        flex: 0 0 350px;
        width: 350px;
    }
    .local-event-title {
        font-size: 28px;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    /* Mobile Header */
    .bw-header-book-now-btn a {
        background: var(--global-palette9);
        color: var(--global-palette1)!important;
    }
    .bw-header-book-now-btn a:hover {
        background: var(--global-palette3);
        color: var(--global-palette9)!important;
    }
    .bw-home-icon a {
        width: max-content!important;
        font-size: 16px;
    }
    .bw-home-icon span {
        margin-right: 0!important;
    }
    
    /* Mobile Footer */
    .bw-footer-logo .wp-block-kadence-column {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
    }
    .bw-footer-contact {
        text-align: center;
        padding: 0!important;
        margin: 0!important;
    }
    .bw-footer-contact li:last-child {
        border-left: 0;
        padding: 24px 0 12px 0;
    }
    .bw-footer-social-menu-container .kt-has-2-columns {
        display: flex;
        flex-direction: column-reverse;
        row-gap: 24px!important;
    }
    .bw-footer-menu {
        font-size: 11px;
        text-align: center;
        padding: 24px 0 0 0!important;
        margin: 0!important;
    }
    .bw-footer-menu li {
        margin-bottom: 12px;
    }
    .bw-footer-social-menu-container .kt-has-2-columns .kt-inside-inner-col {
        flex-wrap: wrap;
        align-content: center;
    }
    
    /* Mobile Events */
    .local-event-row {
        flex-direction: column;
    }
    .local-event-image-col {
        flex: 0 0 auto;
        width: 100%;
    }
    .local-event-image {
        height: 200px;
    }
    .local-event-info-col {
        max-height: none;
    }
    .local-event-content-wrapper {
        flex-direction: column;
    }
    .local-event-poster,
    .local-event-content {
        flex: 0 0 100%;
    }
    .local-event-poster {
        margin-bottom: 30px;
    }
    .local-event-single .local-event-title {
        font-size: 28px;
    }
    .local-event-navigation {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Mobile Lightbox */
    .bw-events-sl-wrapper .sl-image {
        max-width: 90vw !important;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .local-event-title {
        font-size: 24px;
    }
    .local-event-date {
        font-size: 11px;
        letter-spacing: 1px;
    }
    .local-event-info-col {
        padding: 20px;
    }
    .local-event-description {
        font-size: 14px;
        -webkit-line-clamp: 4;
    }
}