/* ==================================================
   01. CONTACT FORM & BUSINESS HOURS
   Original support fix: HC-26675352
   ================================================== */

.page-id-37 form.contact-form,
.page-id-37 .jetpack-business-hours {
    color: #fefbf2;
}


/* ==================================================
   02. HEADER & NAVIGATION
   ================================================== */

/* Hide WooCommerce cart menu */
#woocommerce-menu,
div#toggle-cart.button,
.mobile-nav-side .site-header
#site-navigation.main-navigation
#toggle-cart[for="woocommerce-toggle"].button {
    display: none;
}

/* Left-align submenu items */
.main-navigation .sub-menu li a {
    text-align: left;
}

/* Desktop header alignment */
@media only screen and (min-width: 560px) {

    .site-header {
        grid-template-areas:
            "site-logo site-title main-navigation" !important;
        grid-template-columns: 200px;
    }

    .site-header .site-title,
    .site-header .main-navigation {
        align-self: center;
    }

    .site-header .site-description,
    .site-header .social-navigation {
        align-self: start;
    }

    .site-logo {
        margin-bottom: 0;
    }
}


/* ==================================================
   03. WOOCOMMERCE INVENTORY
   ================================================== */

/* Hide shopping and purchase controls */
body[class*="woocommerce"] #page a.button,
.single-product #page #woocommerce-wrapper
div.product form.cart div.quantity,
.single-product #page #woocommerce-wrapper
div.product form.cart button {
    display: none;
}

/* Product category title color */
h1.woocommerce-products-header__title.page-title {
    color: #fff;
}

/* Inventory image height */
.post-type-archive-product
ul.products li.product a img {
    height: 150px;
}


/* ==================================================
   04. WOOCOMMERCE PRICING
   ================================================== */

/* Standard pricing */
#woocommerce-wrapper ul.products li.product .price,
body[class*="woocommerce"] #page #add_payment_method
.cart-collaterals .cross-sells ul.products li.product .price,
body[class*="woocommerce"] #page
.cart-collaterals .cross-sells ul.products li.product .price,
body[class*="woocommerce"] .woocommerce-Price-amount.amount,
.single-product #page #woocommerce-wrapper
div.product div.summary span.price del,
.single-product #page #woocommerce-wrapper
div.product div.summary p.price del {
    color: #fff;
}

/* Original price visibility */
#woocommerce-wrapper ul.products li.product .price del,
body[class*="woocommerce"] #page #add_payment_method
.cart-collaterals .cross-sells ul.products li.product .price del,
body[class*="woocommerce"] #page
.cart-collaterals .cross-sells ul.products li.product .price del {
    opacity: 1;
}

/* Sale pricing */
#woocommerce-wrapper ul.products li.product.sale a > .price ins,
body[class*="woocommerce"] #page #add_payment_method
.cart-collaterals .cross-sells ul.products li.product.sale a > .price ins,
body[class*="woocommerce"] #page
.cart-collaterals .cross-sells ul.products li.product.sale a > .price ins,
.single-product #page #woocommerce-wrapper
div.product.sale div.summary p.price ins {
    color: red;
}

body[class*="woocommerce"] ins .woocommerce-Price-amount.amount {
    color: inherit;
}

/* Individual product pricing */
.single-product #page #woocommerce-wrapper
div.product div.summary p.price {
    color: white;
}


/* ==================================================
   05. SEARCH WIDGET
   Modern Sundance search bar
   ================================================== */

.widget_search {
    width: 100%;
    max-width: 520px;
    margin: 30px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Search bar container */
.widget_search form.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 50px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Search input container */
.widget_search .search-form label {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* Search input field */
.widget_search input[type="search"] {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    margin: 0;
    font-size: 16px;
    color: #222;
    box-shadow: none;
    box-sizing: border-box;
}

/* Placeholder text */
.widget_search input[type="search"]::placeholder {
    color: #777;
}

/* Search button */
.widget_search .search-submit,
.widget_search input[type="submit"] {
    background: #244f65;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    margin: 0;
    width: auto;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Button hover effect */
.widget_search .search-submit:hover,
.widget_search input[type="submit"]:hover {
    background: #29483d;
    color: #fff;
}

/* Accessible keyboard focus */
.widget_search form.search-form:focus-within {
    outline: 2px solid #7ba9bc;
    outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 600px) {

    .widget_search {
        max-width: 100%;
        margin: 24px auto;
    }

    .widget_search input[type="search"] {
        padding: 10px 12px;
    }

    .widget_search .search-submit,
    .widget_search input[type="submit"] {
        padding: 10px 16px;
        font-size: 14px;
    }
}


/* ==================================================
   06. HOMEPAGE DESIGN VARIABLES
   ================================================== */

body.home {
    --sundance-radius: 24px;
    --sundance-cream: #f5f3ee;
    --sundance-evergreen: #29483d;
    --sundance-blue: #244f65;
    --sundance-shadow: 0 12px 30px rgba(0,0,0,0.18);
}


/* ==================================================
   07. HOMEPAGE MEDIA & TEXT BLOCKS
   Default image styling
   ================================================== */

body.home .wp-block-media-text__media {
    border-radius: var(--sundance-radius);
    overflow: hidden;
}

body.home .wp-block-media-text__media img {
    border-radius: inherit;
    display: block;
}

body.home .wp-block-media-text__media {
    box-shadow: var(--sundance-shadow);
}


/* ==================================================
   08. CUSTOM IMAGE STYLES
   Apply these classes to individual blocks
   ================================================== */

/* Standard rounded photographs */
body.home .sundance-rounded .wp-block-media-text__media,
body.home .wp-block-image.sundance-rounded img {
    border-radius: var(--sundance-radius);
    overflow: hidden;
    box-shadow: var(--sundance-shadow);
}

/* Fade photograph toward the left */
body.home .sundance-fade-left .wp-block-media-text__media {
    -webkit-mask-image:
        linear-gradient(to left, #000 65%, transparent 100%);
    mask-image:
        linear-gradient(to left, #000 65%, transparent 100%);
    box-shadow: none;
}

/* Fade photograph toward the right */
body.home .sundance-fade-right .wp-block-media-text__media {
    -webkit-mask-image:
        linear-gradient(to right, #000 65%, transparent 100%);
    mask-image:
        linear-gradient(to right, #000 65%, transparent 100%);
    box-shadow: none;
}

/* Sunrise-inspired arched photograph */
body.home .sundance-arch .wp-block-media-text__media,
body.home .wp-block-image.sundance-arch img {
    border-radius: 50% 50% 24px 24px / 25% 25% 24px 24px;
    overflow: hidden;
}

/* Asymmetrical outdoor lifestyle photograph */
body.home .sundance-organic .wp-block-media-text__media,
body.home .wp-block-image.sundance-organic img {
    border-radius: 80px 24px 80px 24px;
    overflow: hidden;
    box-shadow: var(--sundance-shadow);
}

/* Remove styling when square corners are needed */
body.home .sundance-square .wp-block-media-text__media,
body.home .sundance-square .wp-block-media-text__media img,
body.home .wp-block-image.sundance-square img {
    border-radius: 0;
    box-shadow: none;
}


/* ==================================================
   09. PARTNER SECTIONS
   Forest River & Cruise America
   ================================================== */

body.home .sundance-partner {
    background-color: #171917;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 40px);
    margin-top: 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
    color: #fff;
}

body.home .sundance-partner .wp-block-media-text__media {
    border-radius: 16px;
    overflow: hidden;
}

body.home .sundance-partner .wp-block-media-text__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ==================================================
   10. SEASONAL PROMOTIONS
   Winter Sale & Black Friday Specials
   ================================================== */

body.home .sundance-promo .wp-block-media-text__media,
body.home .wp-block-image.sundance-promo img,
body.home .sundance-promo .wp-block-image img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sundance-shadow);
}

/* Preserve entire advertisement */
body.home .sundance-promo img {
    object-fit: contain;
    height: auto;
}

/* Optional promotional card container */
body.home .sundance-promo-card {
    border-radius: 24px;
    background: #171917;
    border: 1px solid rgba(255,255,255,0.10);
    padding: clamp(16px, 3vw, 32px);
    box-sizing: border-box;
    color: #fff;
}


/* ==================================================
   11. WHY YOU'LL LOVE US
   Lifestyle feature section
   ================================================== */

body.home .sundance-feature {
    background: var(--sundance-cream);
    color: #171917;
    border-radius: 28px;
    padding: clamp(16px, 3vw, 36px);
    box-sizing: border-box;
}

body.home .sundance-feature .wp-block-media-text__media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sundance-shadow);
}

body.home .sundance-feature .wp-block-media-text__content {
    padding: clamp(20px, 3vw, 48px);
}


/* ==================================================
   12. JETPACK SLIDESHOW
   ================================================== */

/* Preserve centered captions */
.wp-block-jetpack-slideshow_caption {
    text-align: center !important;
}

/* Rounded slideshow frame */
body.home .wp-block-jetpack-slideshow
.wp-block-jetpack-slideshow_swiper-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sundance-shadow);
}

/* Slideshow image corners */
body.home .wp-block-jetpack-slideshow
.wp-block-jetpack-slideshow_image {
    border-radius: 24px;
}

/* Improve caption readability */
body.home .wp-block-jetpack-slideshow_caption {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.35)
    );
    padding: 16px 20px;
    box-sizing: border-box;
}


/* ==================================================
   13. HOMEPAGE GALLERIES
   ================================================== */

body.home .wp-block-gallery .wp-block-image {
    border-radius: 18px;
    overflow: hidden;
}

body.home .wp-block-gallery .wp-block-image img {
    border-radius: 18px;
}


/* ==================================================
   14. MOBILE RESPONSIVENESS
   ================================================== */

@media only screen and (max-width: 600px) {

    body.home {
        --sundance-radius: 16px;
    }

    body.home .sundance-fade-left .wp-block-media-text__media,
    body.home .sundance-fade-right .wp-block-media-text__media {
        -webkit-mask-image: none;
        mask-image: none;
    }

    body.home .sundance-partner,
    body.home .sundance-feature,
    body.home .sundance-promo-card {
        border-radius: 18px;
        padding: 18px;
    }

    body.home .sundance-feature .wp-block-media-text__content,
    body.home .sundance-partner .wp-block-media-text__content {
        padding: 24px 8px;
    }

    body.home .sundance-organic .wp-block-media-text__media {
        border-radius: 40px 16px 40px 16px;
    }

    body.home .wp-block-jetpack-slideshow
    .wp-block-jetpack-slideshow_swiper-container,
    body.home .wp-block-jetpack-slideshow
    .wp-block-jetpack-slideshow_image {
        border-radius: 16px;
    }

    body.home .wp-block-jetpack-slideshow_caption {
        padding: 12px;
    }
}


/* ==================================================
   15. HIDE FRONT-END EDITING LINKS WordPress & WPBakery ================================================== */

.edit-link,
.post-edit-link,
.vc_inline-link,
a[href*="vc_action=vc_inline"] {
    display: none !important;
}

/* ==================================================
   16. HOMEPAGE FOOTER SPACING
================================================== */

/* Completely hide the homepage editing footer */
body.home #post-45 > .entry-footer {
    display: none !important;
}

/* Remove extra spacing below homepage content */
body.home #post-45,
body.home #post-45 > .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce spacing between content and footer */
body.home #content,
body.home #primary,
body.home .site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Reduce footer top spacing */
body.home .site-footer {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Reduce footer widget spacing */
body.home .site-footer > .widget-area,
body.home .site-footer .footer-widget-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Search widget spacing */
body.home .site-footer .widget_search {
    margin-top: 5px !important;
    margin-bottom: 24px !important;
}

/* ==================================================
   17. FOOTER SEARCH ALIGNMENT
================================================== */

/* Center the search widget */
.site-footer .widget_search {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    grid-column: 1 / -1;
}

/* ==================================================
   18. BUSINESS HOURS STYLING
================================================== */

body.home .jetpack-business-hours {
    background: #181a19;
    border: 1px solid #363c39;
    border-radius: 20px;
    padding: clamp(16px, 3vw, 30px);
    box-sizing: border-box;
    color: #fefbf2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

body.home .jetpack-business-hours table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

body.home .jetpack-business-hours td,
body.home .jetpack-business-hours th {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.home .jetpack-business-hours tr:last-child td,
body.home .jetpack-business-hours tr:last-child th {
    border-bottom: none;
}

/* ==================================================
   19. CONTACT INFORMATION BLOCK
   ================================================== */

/* Center contact information container */
body.home .sundance-contact {
    width: 100%;
    max-width: 700px;
    margin: 24px auto;
    padding: 16px;
    text-align: center !important;
    box-sizing: border-box;
    line-height: 1.7;
}

/* Center contact information text */
body.home .sundance-contact p,
body.home .sundance-contact address,
body.home .sundance-contact .wp-block-jetpack-contact-info {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Contact information links */
body.home .sundance-contact a {
    color: #fefbf2;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

body.home .sundance-contact a:hover {
    color: #9cc5d5;
    text-decoration: underline;
}

/* Center social media and sharing icons */
body.home .sundance-contact .wp-block-social-links,
body.home .sundance-contact .wp-block-buttons,
body.home .wp-block-social-links,
body.home .wp-block-jetpack-sharing-buttons {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center Jetpack sharing buttons */
body.home .sharedaddy,
body.home .sd-sharing-enabled {
    text-align: center;
}

body.home .sd-content ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
}

/* Center Jetpack contact information */
body.home .wp-block-jetpack-contact-info {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}