/* =========================================================
   LANDORA GLOBAL HEADER — Custom CSS (Bootstrap compatible)
========================================================= */

:root {
    --ld-green: #087456;
    --ld-deep: #075e49;
    --ld-ink: #19232d;
    --ld-muted: #69727b;
    --ld-line: #e0e4e7;
    --ld-orange: #df5c13;
}

.landora-index-header {
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 max(4.1%, calc((100vw - 1440px) / 2));
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #f0f1f1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.landora-index-header .ld-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ld-green);
    text-decoration: none;
    flex-shrink: 0;
}

.landora-index-header .ld-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
}

.landora-index-header .ld-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.landora-index-header .ld-brand-mark svg {
    width: 44px;
    fill: var(--ld-green);
}

.landora-index-header .ld-brand strong {
    display: block;
    font: 700 30px/1 Arial, sans-serif;
    letter-spacing: -1px;
    color: #2F4156;
}

.landora-index-header .ld-brand small {
    display: block;
    font: 11px Arial, sans-serif;
    color: #51605c;
    margin-top: 3px;
}

/* Main Navigation */
.landora-index-header .ld-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 26px);
    flex: 1;
    margin-left: 20px;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.landora-index-header .ld-main-nav > a,
.landora-index-header .ld-nav-dropdown > a {
    font-size: 14px;
    font-weight: 500;
    color: #526069;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 2px;
    transition: color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.landora-index-header .ld-main-nav > a:hover,
.landora-index-header .ld-main-nav > a.current,
.landora-index-header .ld-nav-dropdown > a:hover,
.landora-index-header .ld-nav-dropdown.current > a {
    color: #2c4157;
    font-weight: 600;
}

/* Dropdown in Main Nav */
.landora-index-header .ld-nav-dropdown {
    position: relative;
}

.landora-index-header .ld-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 195px;
    background: #fff;
    border: 1px solid #e7ece9;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 1050;
}

.landora-index-header .ld-nav-dropdown:hover .ld-nav-dropdown-menu,
.landora-index-header .ld-nav-dropdown.open .ld-nav-dropdown-menu {
    display: block;
}

.landora-index-header .ld-nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    font-size: 13.5px;
    color: #46545b;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
}

.landora-index-header .ld-nav-dropdown-menu a:hover,
.landora-index-header .ld-nav-dropdown-menu a.current {
    background: #f2f8f5;
    color: var(--ld-green);
}

/* Header Actions */
.landora-index-header .ld-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.landora-index-header .ld-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid #e0e4e7;
    border-radius: 9px;
    background: #fff;
    color: #526069;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.landora-index-header .ld-language-switcher:hover {
    border-color: var(--ld-green);
    color: var(--ld-green);
}

.landora-index-header .ld-language-switcher img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.landora-index-header .ld-language-switcher .ld-language-chevron {
    font-size: 9px;
}

.landora-index-header .ld-heart-top {
    position: relative;
    font-size: 25px;
    color: #69747d;
    padding: 4px;
    border: 0;
    background: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.landora-index-header .ld-heart-top:hover {
    color: #d6305b;
}

.landora-index-header .ld-heart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

.landora-index-header .ld-post-btn {
    background: #2F4156;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.18s ease;
}

.landora-index-header .ld-post-btn:hover {
    background:#233242;
    color: #fff;
}

.landora-index-header .ld-post-btn b {
    font-size: 16px;
    line-height: 1;
}

.landora-index-header .ld-dash-btn {
    background: #edf7f3;
    color: #2F4156;
    border: 1px solid #cce5dc;
    text-decoration: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.landora-index-header .ld-dash-btn:hover {
    background: #233242;
    color: #fff;
}

.landora-index-header .ld-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff2f4;
    position: relative;
    border: 2px solid #e2ece8;
    cursor: pointer;
    overflow: hidden;
    display: inline-block;
    padding: 0;
}

.landora-index-header .ld-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landora-index-header .ld-avatar-placeholder {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff2f4;
    display: inline-block;
    border: 1px solid #e0e4e7;
    flex-shrink: 0;
}

.landora-index-header .ld-avatar-placeholder:before {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #9aa5ae;
    top: 6px;
    left: 11.5px;
}

.landora-index-header .ld-avatar-placeholder span {
    position: absolute;
    width: 20px;
    height: 12px;
    background: #9aa5ae;
    border-radius: 12px 12px 8px 8px;
    left: 7px;
    bottom: 4px;
}

.landora-index-header .ld-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #38464d;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e0e4e7;
    background: #fff;
    white-space: nowrap;
}

.landora-index-header .ld-signin-btn:hover {
    border-color: var(--ld-green);
    color: var(--ld-green);
}

/* User Dropdown Menu */
.landora-index-header .ld-user-dropdown {
    position: relative;
}

.landora-index-header .ld-user-menu {
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid #e7ece9;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    font-size: 13.5px;
}

.landora-index-header .ld-user-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
}

.landora-index-header .ld-user-menu .dropdown-item:hover {
    background: #f2f8f5;
    color: var(--ld-green);
}

.landora-index-header .ld-plan-mini {
    background: linear-gradient(135deg, #f1f7f4, #e2efe9);
    border-radius: 8px;
    padding: 8px 10px;
    margin: 4px 4px 8px;
    font-size: 12px;
    color: #1c2822;
}

/* Mobile Toggle Button */
.landora-index-header .ld-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 0;
    background: none;
    cursor: pointer;
}

.landora-index-header .ld-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #38534c;
    display: block;
}

/* Mobile extra section inside nav */
.landora-index-header .ld-mobile-only-links {
    display: none;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 1120px) {
    .landora-index-header {
        padding: 0 3%;
        gap: 10px;
    }

    .landora-index-header .ld-main-nav {
        margin-left: 8px;
        gap: 12px;
    }

    .landora-index-header .ld-main-nav > a,
    .landora-index-header .ld-nav-dropdown > a {
        font-size: 13px;
    }

    .landora-index-header .ld-brand strong {
        font-size: 26px;
    }

    .landora-index-header .ld-brand-mark {
        width: 40px;
    }
}

/* =========================================================
   RESPONSIVE — TABLET & MOBILE (Small to Large)
========================================================= */
@media (max-width: 991px) {
    .landora-index-header {
        height: 64px;
        padding: 0 16px;
        justify-content: space-between;
        gap: 10px;
    }

    .landora-index-header .ld-brand-mark {
        width: 36px;
        height: 40px;
    }

    .landora-index-header .ld-brand-mark svg {
        width: 34px;
    }

    .landora-index-header .ld-brand strong {
        font-size: 24px;
    }

    .landora-index-header .ld-brand small {
        font-size: 9px;
    }

    .landora-index-header .ld-menu-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }

    .landora-index-header .ld-main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 14px 20px 22px;
        margin: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        z-index: 1050;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .landora-index-header .ld-main-nav.open {
        display: flex;
    }

    .landora-index-header .ld-main-nav > a,
    .landora-index-header .ld-nav-dropdown > a {
        padding: 11px 3px;
        border-bottom: 1px solid #f0f1f2;
        font-size: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .landora-index-header .ld-nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        background: #f8faf9;
        border-radius: 8px;
        margin: 4px 0 8px;
        padding: 4px 8px;
    }

    .landora-index-header .ld-header-actions {
        margin-left: auto;
        gap: 10px;
    }

    .landora-index-header .ld-heart-top {
        font-size: 23px;
    }

    /* Move Post Ad & Dashboard into mobile drawer so Wishlist + Profile + Menu fit cleanly */
    .landora-index-header .ld-language-switcher,
    .landora-index-header .ld-post-btn,
    .landora-index-header .ld-dash-btn,
    .landora-index-header .ld-signin-text {
        display: none;
    }

    .landora-index-header .ld-signin-btn {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .landora-index-header .ld-mobile-only-links {
        display: block;
        margin-top: 12px;
        padding-top: 12px;
        /* border-top: 1px solid #e8ecea; */
    }
}

@media (max-width: 390px) {
    .landora-index-header {
        padding: 0 12px;
        gap: 6px;
    }

    .landora-index-header .ld-brand-mark {
        width: 30px;
        height: 34px;
    }

    .landora-index-header .ld-brand-mark svg {
        width: 28px;
    }

    .landora-index-header .ld-brand strong {
        font-size: 20px;
    }

    .landora-index-header .ld-brand small {
        font-size: 8px;
    }

    .landora-index-header .ld-header-actions {
        gap: 6px;
    }
}
