<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <link rel="profile" href="https://gmpg.org/xfn/11">

    <!-- Anti-FOUC Theme Initializer: Defaults to Light Mode -->
    <script>
        (function() {
            var savedTheme = localStorage.getItem('dcm_theme') || 'light';
            if (savedTheme === 'dark') {
                document.documentElement.classList.add('dcm-dark-theme');
            } else {
                document.documentElement.classList.remove('dcm-dark-theme');
            }
        })();
    </script>

    <!-- Critical Glass Header Engine -->
    <style id="dcm-critical-header-css">
        /* ROOT HORIZONTAL VIEWPORT LOCK */
        html, body {
            max-width: 100% !important;
            overflow-x: hidden !important;
            position: relative !important;
        }

        /* HEADER BASE LAYOUT */
        header.site-header-wrapper {
            position: fixed !important;
            top: 45px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            width: calc(100% - 60px) !important;
            max-width: 1400px !important;
            z-index: 99999 !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            pointer-events: none !important;
            box-sizing: border-box !important;
        }

        header.site-header-wrapper > * {
            pointer-events: auto !important;
        }

        /* 1. FREESTANDING PROMINENT LOGO ANCHOR */
        .dcm-logo-anchor {
            position: relative !important;
            width: 120px !important;
            height: 120px !important;
            min-width: 120px !important;
            margin-top: -32px !important;
            margin-bottom: -32px !important;
            margin-right: -24px !important;
            z-index: 12 !important;
            flex-shrink: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        a.dcm-logo-link {
            display: block !important;
            width: 100% !important;
            height: 100% !important;
            text-decoration: none !important;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }

        a.dcm-logo-link:hover {
            transform: scale(1.04) translateY(-2px) !important;
        }

        img.dcm-header-logo-img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            display: block !important;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55)) !important;
        }

        /* THEME SWITCHER: SUSPENDED BELOW LOGO */
        button.dcm-theme-toggle.dcm-logo-bottom-toggle {
            position: absolute !important;
            top: calc(100% + 6px) !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            z-index: 20 !important;
            background: rgba(18, 28, 38, 0.95) !important;
            border-radius: 50px !important;
            padding: 2px !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
            backdrop-filter: blur(16px) !important;
            -webkit-backdrop-filter: blur(16px) !important;
            border: 1px solid rgba(255, 255, 255, 0.25) !important;
            cursor: pointer !important;
            outline: none !important;
            display: flex !important;
            align-items: center !important;
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.35s ease !important;
        }

        html:not(.dcm-dark-theme) button.dcm-theme-toggle.dcm-logo-bottom-toggle {
            background: rgba(255, 255, 255, 0.94) !important;
            border-color: rgba(0, 0, 0, 0.12) !important;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15), inset 0 1px 1px rgba(255, 255, 255, 1) !important;
        }

        button.dcm-theme-toggle.dcm-logo-bottom-toggle:hover {
            transform: translateX(-50%) scale(1.08) !important;
            border-color: #d38b38 !important;
        }

        .dcm-toggle-track {
            width: 42px !important;
            height: 22px !important;
            border-radius: 50px !important;
            background: rgba(255, 255, 255, 0.16) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0 4px !important;
            box-sizing: border-box !important;
            position: relative !important;
            transition: background 0.35s ease !important;
        }

        html:not(.dcm-dark-theme) .dcm-toggle-track {
            background: rgba(0, 0, 0, 0.08) !important;
        }

        .dcm-toggle-thumb {
            position: absolute !important;
            top: 2px !important;
            left: 2px !important;
            width: 18px !important;
            height: 18px !important;
            border-radius: 50% !important;
            background: #ffffff !important;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35) !important;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease !important;
        }

        button.dcm-theme-toggle.is-dark .dcm-toggle-thumb {
            transform: translateX(20px) !important;
            background: #f5b05c !important;
        }

        .dcm-toggle-icon {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            color: #94a3b8 !important;
            z-index: 1 !important;
            pointer-events: none !important;
        }
        .dcm-sun-icon { color: #d38b38 !important; }
        .dcm-moon-icon { color: #f5b05c !important; }

        /* 2. MAIN FLOATING GLASS BAR */
        div.site-header-glass-bar {
            flex-grow: 1 !important;
            position: relative !important;
            z-index: 5 !important;
            background: rgba(28, 40, 51, 0.62) !important;
            backdrop-filter: blur(30px) saturate(210%) !important;
            -webkit-backdrop-filter: blur(30px) saturate(210%) !important;
            border-top-left-radius: 0px !important;
            border-bottom-left-radius: 0px !important;
            border-top-right-radius: 26px !important;
            border-bottom-right-radius: 26px !important;
            border: 1px solid rgba(255, 255, 255, 0.25) !important;
            border-left: none !important;
            box-shadow:
                inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.45),
                inset 0 -1px 2px 0 rgba(0, 0, 0, 0.3),
                0 20px 50px rgba(0, 0, 0, 0.35) !important;
            padding: 12px 24px 12px 38px !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            box-sizing: border-box !important;
            transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
        }

        html:not(.dcm-dark-theme) div.site-header-glass-bar {
            background: rgba(255, 255, 255, 0.72) !important;
            border-color: rgba(255, 255, 255, 0.85) !important;
            border-left: none !important;
            box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
        }

        /* SITE BRAND TITLE */
        a.site-logo {
            position: relative !important;
            z-index: 2 !important;
            font-family: 'Jost', sans-serif !important;
            font-weight: 700 !important;
            font-size: 18px !important;
            color: #ffffff !important;
            text-decoration: none !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
            white-space: nowrap !important;
            transition: color 0.4s ease !important;
        }

        html:not(.dcm-dark-theme) a.site-logo {
            color: #0f172a !important;
        }

        a.site-logo .accent-text { color: #d38b38 !important; }

        /* DESKTOP NAVIGATION (> 1320px) */
        nav.dcm-desktop-nav {
            display: flex !important;
            align-items: center !important;
            position: relative !important;
            z-index: 2 !important;
        }

        nav.dcm-desktop-nav ul {
            list-style: none !important;
            margin: 0 !important; padding: 0 !important;
            display: flex !important;
            flex-direction: row !important;
            gap: 16px !important;
            align-items: center !important;
        }

        nav.dcm-desktop-nav a {
            font-family: 'Montserrat', sans-serif !important;
            font-size: 11.5px !important;
            font-weight: 600 !important;
            color: rgba(255, 255, 255, 0.92) !important;
            text-decoration: none !important;
            text-transform: uppercase !important;
            letter-spacing: 0.8px !important;
            white-space: nowrap !important;
            transition: color 0.2s ease !important;
        }

        html:not(.dcm-dark-theme) nav.dcm-desktop-nav a {
            color: #0f172a !important;
        }

        nav.dcm-desktop-nav a:hover { color: #d38b38 !important; }

        /* HEADER ACTIONS WRAPPER + PORTAL PILLS */
        .dcm-header-actions {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            position: relative !important;
            z-index: 5 !important;
            flex-shrink: 0 !important;
        }

        a.dcm-header-portal-pill {
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
            padding: 7px 13px !important;
            border-radius: 16px !important;
            background: rgba(211, 139, 56, 0.14) !important;
            border: 1px solid rgba(211, 139, 56, 0.45) !important;
            color: #ffffff !important;
            font-family: 'Montserrat', sans-serif !important;
            font-size: 10.5px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.7px !important;
            text-decoration: none !important;
            white-space: nowrap !important;
            transition: all 0.2s ease !important;
        }

        html:not(.dcm-dark-theme) a.dcm-header-portal-pill {
            color: #0b2546 !important;
            background: rgba(11, 37, 70, 0.06) !important;
            border-color: rgba(211, 139, 56, 0.45) !important;
        }

        a.dcm-header-portal-pill:hover {
            background-color: #0b2546 !important;
            color: #ffffff !important;
            border-color: #d38b38 !important;
            transform: translateY(-1px) !important;
        }

        a.dcm-header-book-btn {
            position: relative !important;
            z-index: 2 !important;
            background-color: #d38b38 !important;
            color: #ffffff !important;
            font-family: 'Montserrat', sans-serif !important;
            font-weight: 700 !important;
            font-size: 11px !important;
            padding: 9px 18px !important;
            text-transform: uppercase !important;
            text-decoration: none !important;
            letter-spacing: 1px !important;
            border-radius: 18px !important;
            box-shadow: 0 4px 15px rgba(211, 139, 56, 0.4) !important;
            white-space: nowrap !important;
            display: inline-block !important;
            transition: transform 0.2s ease, background-color 0.2s ease !important;
        }

        a.dcm-header-book-btn:hover {
            background-color: #b87328 !important;
            transform: translateY(-1px) !important;
        }

        /* ANIMATED HAMBURGER BUTTON */
        button.dcm-hamburger-btn {
            display: none !important;
            background: transparent !important;
            border: none !important;
            cursor: pointer !important;
            padding: 4px !important;
            width: 28px !important;
            height: 22px !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            position: relative !important;
            z-index: 10 !important;
            box-sizing: border-box !important;
        }

        .dcm-hamburger-line {
            display: block !important;
            width: 100% !important;
            height: 2.5px !important;
            background-color: #ffffff !important;
            border-radius: 3px !important;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, background-color 0.3s ease !important;
            transform-origin: center !important;
        }

        html:not(.dcm-dark-theme) .dcm-hamburger-line {
            background-color: #0f172a !important;
        }

        button.dcm-hamburger-btn:hover .dcm-hamburger-line { background-color: #d38b38 !important; }
        button.dcm-hamburger-btn.is-active .dcm-hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg) !important; background-color: #d38b38 !important; }
        button.dcm-hamburger-btn.is-active .dcm-hamburger-line:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
        button.dcm-hamburger-btn.is-active .dcm-hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg) !important; background-color: #d38b38 !important; }

        /* BACKDROP BLUR OVERLAY */
        .dcm-drawer-backdrop {
            position: fixed !important;
            top: 0 !important; left: 0 !important;
            width: 100vw !important; height: 100vh !important;
            background: rgba(0, 0, 0, 0.65) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            z-index: 999998 !important;
            opacity: 0 !important;
            pointer-events: none !important;
            transition: opacity 0.35s ease !important;
        }
        .dcm-drawer-backdrop.is-open { opacity: 1 !important; pointer-events: auto !important; }

        /* POPOUT GLASS MOBILE DRAWER */
        .dcm-mobile-drawer {
            position: fixed !important;
            top: 0 !important; right: 0 !important;
            width: 320px !important;
            max-width: 85vw !important;
            height: 100vh !important;
            background: rgba(18, 28, 38, 0.94) !important;
            backdrop-filter: blur(35px) saturate(210%) !important;
            -webkit-backdrop-filter: blur(35px) saturate(210%) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
            box-shadow: -20px 0 50px rgba(0, 0, 0, 0.75) !important;
            z-index: 999999 !important;
            transform: translateX(100%) !important;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease !important;
            display: flex !important;
            flex-direction: column !important;
            padding: 35px 28px !important;
            box-sizing: border-box !important;
        }

        html:not(.dcm-dark-theme) .dcm-mobile-drawer {
            background: rgba(255, 255, 255, 0.96) !important;
            border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
            box-shadow: -20px 0 50px rgba(15, 23, 42, 0.2) !important;
        }

        .dcm-mobile-drawer.is-open { transform: translateX(0) !important; }
        .dcm-drawer-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 28px !important; padding-bottom: 16px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; }
        html:not(.dcm-dark-theme) .dcm-drawer-header { border-bottom-color: rgba(0, 0, 0, 0.08) !important; }
        .dcm-drawer-title { color: #d38b38 !important; font-family: 'Jost', sans-serif !important; font-weight: 800 !important; font-size: 16px !important; letter-spacing: 2px !important; text-transform: uppercase !important; }
        button.dcm-drawer-close { background: transparent !important; border: none !important; color: #ffffff !important; font-size: 32px !important; cursor: pointer !important; line-height: 1 !important; transition: color 0.2s ease !important; }
        html:not(.dcm-dark-theme) button.dcm-drawer-close { color: #0f172a !important; }
        button.dcm-drawer-close:hover { color: #d38b38 !important; }
        .dcm-drawer-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 18px !important; }
        .dcm-drawer-nav a { color: #ffffff !important; font-family: 'Montserrat', sans-serif !important; font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 1px !important; text-decoration: none !important; display: block !important; transition: color 0.2s ease, transform 0.2s ease !important; }
        html:not(.dcm-dark-theme) .dcm-drawer-nav a { color: #0f172a !important; }
        .dcm-drawer-nav a:hover { color: #d38b38 !important; transform: translateX(6px) !important; }

        .dcm-drawer-portal-grid {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 10px !important;
            margin-top: 22px !important;
            padding-top: 18px !important;
            border-top: 1px solid rgba(211, 139, 56, 0.25) !important;
        }
        .dcm-drawer-portal-btn {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            padding: 10px 8px !important;
            border-radius: 12px !important;
            background: rgba(211, 139, 56, 0.14) !important;
            border: 1px solid rgba(211, 139, 56, 0.45) !important;
            color: #f5b05c !important;
            font-family: 'Montserrat', sans-serif !important;
            font-size: 10.5px !important;
            font-weight: 800 !important;
            text-transform: uppercase !important;
            text-decoration: none !important;
            text-align: center !important;
        }
        html:not(.dcm-dark-theme) .dcm-drawer-portal-btn { color: #0b2546 !important; }

        .dcm-drawer-footer { margin-top: auto !important; padding-top: 25px !important; display: flex !important; flex-direction: column !important; gap: 16px !important; }
        .dcm-drawer-toggle-row { display: flex !important; justify-content: space-between !important; align-items: center !important; font-weight: 700 !important; font-size: 12px !important; color: #94a3b8 !important; letter-spacing: 1px !important; }
        html:not(.dcm-dark-theme) .dcm-drawer-toggle-row { color: #475569 !important; }
        a.dcm-drawer-book-btn { display: block !important; text-align: center !important; background-color: #d38b38 !important; color: #ffffff !important; font-family: 'Montserrat', sans-serif !important; font-weight: 800 !important; font-size: 13px !important; padding: 14px 20px !important; text-transform: uppercase !important; text-decoration: none !important; letter-spacing: 1.5px !important; border-radius: 20px !important; box-shadow: 0 4px 20px rgba(211, 139, 56, 0.45) !important; }

        /* TABLET ADJUSTMENTS (< 1320px) */
        @media (max-width: 1320px) {
            header.site-header-wrapper {
                top: 20px !important;
                width: calc(100% - 32px) !important;
            }
            nav.dcm-desktop-nav,
            a.dcm-header-portal-pill {
                display: none !important;
            }
            button.dcm-hamburger-btn {
                display: flex !important;
            }
            .dcm-logo-anchor {
                width: 85px !important;
                height: 85px !important;
                min-width: 85px !important;
                margin-top: -18px !important;
                margin-bottom: -18px !important;
                margin-right: -18px !important;
            }
            button.dcm-theme-toggle.dcm-logo-bottom-toggle {
                top: calc(100% + 5px) !important;
                transform: translateX(-50%) scale(0.85) !important;
            }
            div.site-header-glass-bar {
                padding: 10px 18px 10px 30px !important;
                border-top-right-radius: 20px !important;
                border-bottom-right-radius: 20px !important;
            }
            a.site-logo {
                font-size: 15px !important;
            }
        }

        /* MOBILE ADJUSTMENTS (< 640px) */
        @media (max-width: 640px) {
            header.site-header-wrapper {
                top: 14px !important;
                width: calc(100% - 16px) !important;
            }
            .dcm-logo-anchor {
                width: 72px !important;
                height: 72px !important;
                min-width: 72px !important;
                margin-top: -12px !important;
                margin-bottom: -12px !important;
                margin-right: -12px !important;
            }
            button.dcm-theme-toggle.dcm-logo-bottom-toggle {
                top: calc(100% + 5px) !important;
                transform: translateX(-50%) scale(0.75) !important;
                transform-origin: top center !important;
            }
            div.site-header-glass-bar {
                height: 48px !important;
                min-height: 48px !important;
                padding: 0 10px 0 22px !important;
                border-top-right-radius: 22px !important;
                border-bottom-right-radius: 22px !important;
                border-top-left-radius: 0px !important;
                border-bottom-left-radius: 0px !important;
                border-left: none !important;
            }
            a.site-logo {
                font-size: 11px !important;
                letter-spacing: 0.3px !important;
                max-width: calc(100vw - 225px) !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
            }
            .dcm-header-actions {
                gap: 8px !important;
            }
            a.dcm-header-book-btn {
                font-size: 10px !important;
                padding: 7px 12px !important;
                border-radius: 12px !important;
                letter-spacing: 0.5px !important;
                font-weight: 800 !important;
                line-height: 1.1 !important;
            }
            button.dcm-hamburger-btn {
                width: 24px !important;
                height: 18px !important;
                padding: 1px !important;
            }
            .dcm-hamburger-line {
                height: 2.2px !important;
            }
        }
    </style>

    <?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="https://schema.org/WebPage">
<?php wp_body_open(); ?>

<a class="screen-reader-text skip-link" href="#primary-content">Skip to primary content</a>

<?php if (!function_exists('elementor_theme_do_location') || !elementor_theme_do_location('header')) : ?>
<header class="site-header-wrapper" itemscope itemtype="https://schema.org/WPHeader">
    <div class="dcm-logo-anchor">
        <a href="<?php echo esc_url(home_url('/')); ?>" class="dcm-logo-link" rel="home" itemprop="url" aria-label="Duck Creek Management Homepage">
            <span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
                <img
                    src="https://dcmpilot.supremevantagemedia.com/wp-content/uploads/2026/10/duck-creek-mamangement-premiere-host-for-utah.avif"
                    alt="Duck Creek Management Logo - Premier Vacation Rental Host in Utah"
                    title="Duck Creek Management"
                    itemprop="contentUrl"
                    width="134"
                    height="134"
                    decoding="async"
                    fetchpriority="high"
                    class="dcm-header-logo-img"
                />
                <meta itemprop="url" content="https://dcmpilot.supremevantagemedia.com/wp-content/uploads/2026/10/duck-creek-mamangement-premiere-host-for-utah.avif" />
            </span>
        </a>

        <button type="button" class="dcm-theme-toggle dcm-logo-bottom-toggle" id="dcmThemeToggle" role="switch" aria-label="Toggle Light/Dark Mode" aria-checked="false">
            <span class="dcm-toggle-track">
                <span class="dcm-toggle-icon dcm-sun-icon" aria-hidden="true">
                    <svg viewBox="0 0 24 24" width="11" height="11" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
                </span>
                <span class="dcm-toggle-thumb"></span>
                <span class="dcm-toggle-icon dcm-moon-icon" aria-hidden="true">
                    <svg viewBox="0 0 24 24" width="10" height="10" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
                </span>
            </span>
        </button>
    </div>

    <div class="site-header-glass-bar">
        <a href="<?php echo esc_url(home_url('/')); ?>" class="site-logo" itemprop="url">
            <span itemprop="name">Duck Creek <span class="accent-text">Management</span></span>
        </a>

        <nav class="dcm-desktop-nav" aria-label="Primary Navigation" itemscope itemtype="https://schema.org/SiteNavigationElement">
            <?php
            if (has_nav_menu('primary')) {
                wp_nav_menu(array(
                    'theme_location' => 'primary',
                    'container'      => false,
                    'fallback_cb'    => false,
                ));
            } else {
                echo '<ul>
                    <li><a href="/" itemprop="url"><span itemprop="name">Home</span></a></li>
                    <li><a href="/cabins/" itemprop="url"><span itemprop="name">Vacation Rentals</span></a></li>
                    <li><a href="/property-management/" itemprop="url"><span itemprop="name">Property Management</span></a></li>
                    <li><a href="/about/" itemprop="url"><span itemprop="name">About Us</span></a></li>
                    <li><a href="/contact/" itemprop="url"><span itemprop="name">Contact</span></a></li>
                </ul>';
            }
            ?>
        </nav>

        <!-- Right Header Actions (Guest Portal, Owner Login, Book CTA + Hamburger) -->
        <div class="dcm-header-actions">
            <a href="/guest-portal/" class="dcm-header-portal-pill" title="Manage Your Cabin Booking">
                <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#d38b38" stroke-width="2.3"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
                <span>My Booking</span>
            </a>
            <a href="/owner-portal/" class="dcm-header-portal-pill" title="Cabin Owner Portal">
                <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="#d38b38" stroke-width="2.3"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
                <span>Owner Portal</span>
            </a>
            <a href="/cabins/" class="dcm-header-book-btn" aria-label="Book Your Stay at Duck Creek Village">Book Stay</a>

            <button type="button" class="dcm-hamburger-btn" id="dcmHamburgerBtn" aria-label="Toggle Mobile Navigation">
                <span class="dcm-hamburger-line"></span>
                <span class="dcm-hamburger-line"></span>
                <span class="dcm-hamburger-line"></span>
            </button>
        </div>
    </div>
</header>

<div class="dcm-drawer-backdrop" id="dcmDrawerBackdrop"></div>

<div class="dcm-mobile-drawer" id="dcmMobileDrawer" aria-label="Mobile Navigation Menu">
    <div class="dcm-drawer-header">
        <span class="dcm-drawer-title">NAVIGATION</span>
        <button type="button" class="dcm-drawer-close" id="dcmDrawerClose" aria-label="Close Menu">&times;</button>
    </div>

    <nav class="dcm-drawer-nav">
        <ul>
            <li><a href="/">Home</a></li>
            <li><a href="/cabins/">Vacation Rentals</a></li>
            <li><a href="/property-management/">Property Management</a></li>
            <li><a href="/about/">About Us</a></li>
            <li><a href="/contact/">Contact</a></li>
        </ul>
    </nav>

    <div class="dcm-drawer-portal-grid">
        <a href="/guest-portal/" class="dcm-drawer-portal-btn">My Booking</a>
        <a href="/owner-portal/" class="dcm-drawer-portal-btn">Owner Portal</a>
    </div>

    <div class="dcm-drawer-footer">
        <div class="dcm-drawer-toggle-row">
            <span>APPEARANCE</span>
            <button type="button" class="dcm-theme-toggle" id="dcmThemeToggleMobile" role="switch" aria-label="Toggle Light/Dark Mode" aria-checked="false">
                <span class="dcm-toggle-track">
                    <span class="dcm-toggle-icon dcm-sun-icon"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2.2"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg></span>
                    <span class="dcm-toggle-thumb"></span>
                    <span class="dcm-toggle-icon dcm-moon-icon"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2.2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg></span>
                </span>
            </button>
        </div>
        <a href="/cabins/" class="dcm-drawer-book-btn">Book Your Stay</a>
    </div>
</div>

<script id="dcm-header-engine-script">
document.addEventListener("DOMContentLoaded", function() {
    var hamburgerBtn = document.getElementById("dcmHamburgerBtn");
    var mobileDrawer = document.getElementById("dcmMobileDrawer");
    var drawerBackdrop = document.getElementById("dcmDrawerBackdrop");
    var drawerCloseBtn = document.getElementById("dcmDrawerClose");

    function openDrawer() {
        if (hamburgerBtn) hamburgerBtn.classList.add("is-active");
        if (mobileDrawer) mobileDrawer.classList.add("is-open");
        if (drawerBackdrop) drawerBackdrop.classList.add("is-open");
        document.body.style.overflow = "hidden";
    }

    function closeDrawer() {
        if (hamburgerBtn) hamburgerBtn.classList.remove("is-active");
        if (mobileDrawer) mobileDrawer.classList.remove("is-open");
        if (drawerBackdrop) drawerBackdrop.classList.remove("is-open");
        document.body.style.overflow = "";
    }

    if (hamburgerBtn) {
        hamburgerBtn.addEventListener("click", function(e) {
            e.stopPropagation();
            if (mobileDrawer && mobileDrawer.classList.contains("is-open")) {
                closeDrawer();
            } else {
                openDrawer();
            }
        });
    }

    if (drawerCloseBtn) drawerCloseBtn.addEventListener("click", closeDrawer);
    if (drawerBackdrop) drawerBackdrop.addEventListener("click", closeDrawer);
    document.addEventListener("keydown", function(e) {
        if (e.key === "Escape" && mobileDrawer && mobileDrawer.classList.contains("is-open")) {
            closeDrawer();
        }
    });

    var logoToggle = document.getElementById("dcmThemeToggle");
    var mobileToggle = document.getElementById("dcmThemeToggleMobile");

    function updateToggleUI(isDark) {
        [logoToggle, mobileToggle].forEach(function(btn) {
            if (!btn) return;
            btn.setAttribute("aria-checked", isDark ? "true" : "false");
            btn.classList.toggle("is-dark", isDark);
        });
    }

    function toggleTheme(e) {
        if (e) {
            e.preventDefault();
            e.stopPropagation();
        }
        var isCurrentlyDark = document.documentElement.classList.contains("dcm-dark-theme");
        var targetDark = !isCurrentlyDark;
        document.documentElement.classList.toggle("dcm-dark-theme", targetDark);
        localStorage.setItem("dcm_theme", targetDark ? "dark" : "light");
        updateToggleUI(targetDark);
        window.dispatchEvent(new CustomEvent("dcm_theme_changed", { detail: { isDark: targetDark } }));
    }

    if (logoToggle) logoToggle.addEventListener("click", toggleTheme);
    if (mobileToggle) mobileToggle.addEventListener("click", toggleTheme);

    updateToggleUI(document.documentElement.classList.contains("dcm-dark-theme"));
});
</script>
<?php endif; ?>