/* Marketplace navigation: native disclosures remain usable without JavaScript. */
.mp-header {
    height: auto;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
}

.mp-header .homely-header__inner {
    gap: 12px;
    min-height: 78px;
    height: auto;
}

.mp-header .homely-header-left {
    gap: 22px !important;
}

.mp-header .homely-logo__name {
    font-size: 24px;
    letter-spacing: -.8px;
}

.mp-header .homely-logo__tagline {
    font-size: 9px;
    letter-spacing: .2px;
}

.mp-header .homely-logo__icon {
    color: #084d96;
    background: #edf4fc;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 8px;
}

.mp-header .homely-nav {
    overflow: visible;
    gap: 0;
    justify-content: center;
}

.mp-header .homely-nav__link {
    font-size: 13px;
    padding: 0 10px;
    gap: 7px;
    border-radius: 8px;
    text-decoration: none;
}

.mp-header .homely-nav__link.active::after {
    bottom: -18px;
    background: #084d96;
}

.mp-header .homely-actions {
    gap: 14px;
}

.mp-header .site-post-button {
    height: 42px;
    padding: 0 17px;
    border-radius: 9px;
    gap: 7px;
    font-size: 12px;
    background: #084d96;
    border-color: #084d96;
}

.mp-post-plus {
    font-size: 19px;
    line-height: 1;
}

.mp-account {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #18364e;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 650;
}

.mp-account svg {
    width: 22px;
    height: 22px;
}

.mp-account-initial {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #edf4fc;
    color: #084d96;
    border-radius: 50%;
    text-transform: uppercase;
}

.mp-city-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #233e56;
    padding: 5px 0 5px 18px;
    border: 0;
    border-left: 1px solid #e1e7ef;
    background: transparent;
    text-align: left;
    min-width: 0;
}

.mp-city-trigger small {
    display: block;
    color: #778797;
    font-size: 10px;
    line-height: 1.5;
}

.mp-city-trigger strong {
    display: block;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}

.mp-city-icon svg {
    width: 19px;
    height: 19px;
    color: #084d96;
}

.mp-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0 0 0 4px;
    transition: transform .16s ease;
}

.mp-play-icon {
    width: 21px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #084d96;
    font-size: 10px;
    border-radius: 7px;
    background: #e9f2ff;
}

.mp-mega {
    position: static;
}

.mp-mega>summary {
    list-style: none;
    cursor: pointer;
}

.mp-mega>summary::-webkit-details-marker {
    display: none;
}

.mp-mega[open]>summary {
    color: #084d96;
    /* background: #edf4fc; */
}

.mp-mega[open]>summary .mp-chevron,
.mp-mobile-category[open]>summary .mp-chevron {
    transform: rotate(180deg);
}

.mp-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    padding: 22px;
    border: 1px solid #e3eaf2;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 22px 48px #152f5020;
    background: #fff;
    z-index: 1050;
    text-align: left;
}

.mp-mega-intro {
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, #edf5fe, #f7faff);
}

.mp-eyebrow {
    color: #5b7c9b;
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    line-height: 1.6;
}

.mp-mega-panel h2 {
    font-size: 24px;
    line-height: 1.3;
    color: #143652;
    margin: 0 0 14px;
    letter-spacing: -.6px;
}

.mp-mega-panel p {
    font-size: 13px;
    line-height: 1.8;
    color: #667b8d;
    margin: 0 0 22px;
}

.mp-mega-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-height: min(65vh, 480px);
    overflow-y: auto;
    padding: 10px 10px 10px 28px;
    scrollbar-width: thin;
}

.mp-mega-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.mp-mega-column a {
    font-size: 12px;
    color: #435a70;
    text-decoration: none;
    line-height: 1.6;
}

.mp-mega-column a:hover {
    color: #084d96;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mp-mega-column .mp-mega-category {
    font-weight: 750;
    color: #153652;
    font-size: 13px;
    margin-bottom: 4px;
}

.mp-mega-panel .mp-menu-primary {
    font-size: 12px;
    display: inline-flex;
    gap: 15px;
    color: #084d96;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.6;
}

.mp-sell-panel {
    grid-template-columns: 1.4fr 1fr;
    max-width: 760px;
    left: auto;
    gap: 35px;
    padding: 30px;
}

.mp-sell-panel p {
    margin-bottom: 0;
}

.mp-sell-panel .mp-mega-column {
    justify-content: center;
}

.mp-mobile-strip {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #edf1f6;
    gap: 10px;
}

.mp-mobile-strip .mp-city-trigger {
    border: 0;
    padding: 5px 0;
    gap: 5px;
}

.mp-mobile-shortcuts {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mp-mobile-shortcuts a {
    text-decoration: none;
    color: #23435e;
    font-weight: 650;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mp-mobile-shortcuts .mp-play-icon {
    width: 17px;
    height: 19px;
    border-radius: 5px;
    font-size: 8px;
}

.mp-sidebar-greeting {
    color: #6c8295;
    font-size: 13px;
    margin: 0 0 18px;
    line-height: 1.7;
}

.mp-mobile-category {
    border-bottom: 1px solid #edf1f6;
}

.mp-mobile-category>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: #243e55;
    font-size: 14px;
    font-weight: 650;
    padding: 15px 0;
    cursor: pointer;
}

.mp-mobile-category>summary::-webkit-details-marker {
    display: none;
}

.mp-mobile-category-links {
    display: grid;
    gap: 14px;
    padding: 4px 12px 22px;
}

.mp-mobile-category-links a {
        color: #002544;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.mp-mobile-category-links .mp-mobile-subcategory {
    padding-left: 13px;
    color: #738697;
    font-size: 12px;
}

.mp-city-modal .modal-dialog {
    max-width: 590px;
}

.mp-city-modal .modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 80px #0c264830;
}

.mp-city-modal .modal-header {
    border: 0;
    padding: 28px 28px 0;
    align-items: flex-start;
}

.mp-city-modal .modal-title {
    color: #173950;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.6px;
}

.mp-city-modal .mp-eyebrow {
    margin-bottom: 7px;
}

.mp-city-modal .modal-body {
    padding: 15px 28px 26px;
}

.mp-city-description {
    font-size: 13px;
    color: #758797;
    line-height: 1.8;
    margin-bottom: 18px;
}

.mp-city-search {
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid #e1e8f1;
    background: #f9fbfd;
    font-size: 13px;
}

.mp-city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding: 2px;
}

.mp-city-option {
    min-height: 66px;
    background: #fff;
    border: 1px solid #e4eaf1;
    border-radius: 10px;
    padding: 10px;
    color: #29465e;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
}

.mp-city-option small {
    font-size: 10px;
    color: #8494a2;
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

.mp-city-option:hover,
.mp-city-option.is-selected {
    border-color: #084d96;
    color: #084d96;
    background: #f1f7ff;
}

.mp-city-option:disabled {
    opacity: .6;
    cursor: wait;
}

.mp-city-note {
    color: #8b98a4;
    font-size: 10px;
    line-height: 1.6;
    display: block;
}

.mp-city-feedback {
    color: #b42318;
    font-size: 12px;
    margin: 12px 0;
    min-height: 1px;
}

.mp-city-empty {
    color: #7c8c9a;
    font-size: 12px;
    margin-top: 15px;
}

.mp-discovery {
    padding-top: 38px;
    padding-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 40px;
    align-items: center;
}

.mp-discovery h2 {
    font-size: clamp(22px, 2.1vw, 29px);
    font-weight: 750;
    color: #153652;
    letter-spacing: -.7px;
    line-height: 1.3;
    max-width: 400px;
}

.mp-discovery .mp-eyebrow {
    margin-bottom: 10px;
}

.mp-discovery p {
    color: #778a9b;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 400px;
}

.mp-discovery-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mp-discovery-links a {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    text-decoration: none;
    color: #284b68;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.mp-discovery-links a:hover {
    border-color: #a0bddb;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px #1b4c7b0c;
}

.mp-discovery-links strong {
    font-size: 13px;
    margin: 10px 0 5px;
}

.mp-discovery-links small {
    font-size: 10px;
    color: #8999a7;
    line-height: 1.6;
}

.mp-discovery-symbol {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #edf4fd;
    display: grid;
    place-items: center;
    color: #084d96;
    font-size: 23px;
}

.mp-discovery-links a>span:last-child {
    position: absolute;
    right: 15px;
    top: 17px;
    color: #829bb1;
}

.mp-header a:focus-visible,
.mp-header summary:focus-visible,
.mp-city-trigger:focus-visible,
.mp-city-option:focus-visible {
    outline: 3px solid #83b5ed;
    outline-offset: 3px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .mp-header .homely-logo__icon,
    .mp-header .homely-logo__tagline {
        display: none;
    }

    .mp-header .homely-logo__name {
        font-size: 21px;
    }

    .mp-header .homely-header-left {
        gap: 10px !important;
    }

    .mp-city-trigger {
        padding-left: 10px;
        gap: 5px;
    }

    .mp-city-trigger strong {
        max-width: 80px;
    }

    .mp-header .homely-nav__link {
        font-size: 11px;
        padding: 0 7px;
    }

    .mp-header .homely-actions {
        gap: 10px;
    }

    .mp-header .site-post-button {
        padding: 0 11px;
        font-size: 11px;
    }

    .mp-account span:not(.mp-account-initial) {
        display: none;
    }
}

@media (max-width: 991.98px) {
    :root {
        --homely-header-height: 110px;
    }

    .mp-header .homely-header__inner {
        min-height: 65px;
        gap: 12px;
    }

    .mp-header .homely-header-left {
        gap: 11px !important;
    }

    .mp-header .homely-logo__name {
        font-size: 23px;
        max-width: 38vw;
    }

    .mp-header .homely-logo__tagline {
        max-width: 36vw;
        font-size: 8px;
    }

    .mp-header .homely-logo__icon {
        width: 30px;
        height: 30px;
        padding: 6px;
        border-radius: 9px;
    }

    .mp-discovery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 26px;
    }

    .mp-discovery h2,
    .mp-discovery p {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .mp-header .homely-header__inner {
        gap: 7px;
    }

    .mp-header .homely-logo {
        gap: 5px;
    }

    .mp-header .homely-logo__icon {
        display: none;
    }

    .mp-header .homely-logo__name {
        font-size: 22px;
    }

    .mp-header .site-post-button {
        font-size: 10px;
        padding: 0 11px !important;
        height: 36px;
        gap: 4px;
    }

    .mp-post-plus {
        font-size: 16px;
    }

    .mp-city-modal .modal-header {
        padding: 24px 20px 0;
    }

    .mp-city-modal .modal-body {
        padding: 14px 20px 22px;
    }

    .mp-city-modal .modal-title {
        font-size: 22px;
    }

    .mp-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-discovery-links {
        gap: 8px;
    }

    .mp-discovery-links a {
        padding: 14px 11px;
        border-radius: 12px;
    }

    .mp-discovery-links strong {
        font-size: 11px;
        line-height: 1.5;
    }

    .mp-discovery-links small {
        font-size: 9px;
    }

    .mp-discovery-symbol {
        width: 29px;
        height: 29px;
        font-size: 21px;
    }

    .mp-discovery-links a>span:last-child {
        right: 9px;
        top: 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mp-chevron,
    .mp-discovery-links a {
        transition: none;
    }

    .mp-discovery-links a:hover {
        transform: none;
    }
}

/* Compact catalog navigation. */
@media(min-width:992px) {
   .mp-header .mp-mega-panel {
        display: block;
        width: min(1040px, calc(100vw - 56px));
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        padding: 0;
        border: 0px solid #e7edf4;
        border-radius: 0px 0px 10px 10px;
        box-shadow: 0 25px 70px #122c4926;
        left: 50%;
        transform: translateX(-50%);
    }

    .mp-mega-heading {
               display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0px;
        padding: 15px 15px;
        background: #fff;
        border-bottom: 1px solid #e9eef4;
    }

    .mp-mega-heading h2 {
        font-size: 18px;
        letter-spacing: -.4px;
        margin: 5px 0 0;
        color: #172c43;
        font-weight: 700
    }

    .mp-mega-heading>a {
        font-size: 12px;
        color: #075fae;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none;
        display: flex;
        gap: 14px
    }

    .mp-mega-panel .mp-mega-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 18px 20px;
        padding: 15px;
        max-height: none;
        overflow: visible
    }

    .mp-mega-panel .mp-mega-column {
        padding: 0;
        border: 0;
        min-width: 0;
        gap: 2px;
        align-items: stretch
    }

    .mp-mega-column>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        padding: 5px 0px;
        border-radius: 7px;
        color: #556578;
        transition: background .15s, color .15s
    }

    .mp-mega-column>a:hover {
        background: #fff;
               color: #075fae;
        text-decoration: none;
    }

    .mp-mega-column .mp-mega-category {
        justify-content: flex-start;
        color: #172c43;
        font-weight: 750;
        font-size: 13px;
        gap: 8px;
        padding: 0 0 12px;
        margin-bottom: 7px;
        border-bottom: 1px solid #edf1f6;
        border-radius: 0
    }

    .mp-mega-category-icon {
        width: 29px;
        height: 29px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        background: #edf5ff;
        color: #136bb5;
        flex-shrink: 0;
                display: none;
    }

    .mp-mega-category-icon svg {
        width: 17px;
        height: 17px
    }

    .mp-mega-category small {
        margin-left: auto;
        font-size: 10px;
        color: #7c8c9c;
        font-weight: 500
    }

    .mp-menu-link-arrow {
        opacity: 0;
        color: #075fae;
        font-size: 15px
    }

    .mp-mega-column>a:hover .mp-menu-link-arrow {
        opacity: 1
    }

    .mp-mega-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        color: #2b5f8e;
        font-size: 12px;
        font-weight: 650;
        padding: 15px 28px;
        background: #fafbfd;
        border-top: 1px solid #edf1f6
    }

    .mp-header .mp-sell-panel {
        width: 620px;
        padding: 26px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px
    }

    .mp-sell-panel h2 {
        font-size: 23px;
        color: #172c43;
        margin: 10px 0;
        line-height: 1.3;
        letter-spacing: -.5px
    }

    .mp-header .mp-sell-panel .mp-menu-primary {
        padding: 12px;
        color: #fff;
        background-color: #084d96;
    }
}


.mp-mega-category small{
    display:none;
}
