/* Laravel/admin overrides — keep after design package CSS */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.overall {
    max-width: 1920px;
    margin-inline: auto;
}

/* Header-only mode when hero section is disabled in admin */
.hero.hero-header-only {
    height: auto;
    max-height: none;
    min-height: 0;
    background: var(--white);
    margin-bottom: 1rem;
    border: 1px solid rgba(15, 42, 74, 0.08);
    box-shadow: 0 8px 24px rgba(15, 42, 74, 0.06);
}

.hero.hero-header-only .nav-list a {
    color: var(--navy);
}

.hero.hero-header-only .nav-list a:hover {
    color: var(--navy-dark);
    opacity: 1;
}

.hero.hero-header-only .nav-chevron {
    filter: none;
    opacity: 0.75;
}

/* Nav dropdowns (admin-managed menu) */
.nav-list > li.has-dropdown {
    position: relative;
}

.nav-list > li.has-dropdown > a.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(14, 42, 74, 0.18);
    z-index: 40;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-list > li.has-dropdown:hover > .nav-dropdown-menu,
.nav-list > li.has-dropdown.is-open > .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #3C4A57 !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #F3F6F9;
    color: #0E2A4A !important;
    opacity: 1;
}

/* Search select options (dark navy dropdown) */
.search-field-content select option {
    background-color: var(--navy-search);
    color: #ffffff;
}

.search-field-content select option[value=""],
.search-field-content select option:disabled {
    color: var(--text-muted);
}

.search-field-content select option:checked,
.search-field-content select option:hover,
.search-field-content select option:focus {
    background-color: var(--blue-btn);
    color: #ffffff;
}

/* Admin font size always; colors only when stuck/scrolled */
.price-section--dynamic .price-marquee-item {
    font-size: var(--announcement-font-size, 14px);
}

/* Keep announcement ticker slow (survives style.css design refreshes) */
.price-marquee-track {
    animation-duration: 120s !important;
}

.price-section--dynamic.is-stuck {
    background: var(--announcement-bg, #205183);
    border-top: none;
}

.price-section--dynamic.is-stuck .price-marquee-item {
    color: var(--announcement-text, #ffffff);
}

.price-section--dynamic.is-stuck .price-marquee-separator {
    color: var(--announcement-text, #ffffff);
    opacity: 0.85;
}

/* CMS rich text in planning visit */
.planning-visit-copy-text {
    font-size: 14px;
    line-height: 1.5;
    color: #BAC9D9;
    max-width: 420px;
}

.planning-visit-copy-text p {
    color: #BAC9D9;
    margin: 0;
}

/* Safer wrapping for CMS text */
.hero-title,
.category-subtitle,
.flea-market-points li,
.upcoming-card-title,
.artical-card-title,
.canton-trade-card-text,
.canton-history-card-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 992px) {
    .nav-list .has-dropdown > .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-list .nav-dropdown-menu {
        position: static;
        transform: none;
        display: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-list .has-dropdown.is-open > .nav-dropdown-menu {
        display: block;
    }

    .nav-list .nav-dropdown-menu a {
        padding-left: 20px;
        /* Homepage white drawer: dark submenu text (white was invisible) */
        color: #545454 !important;
        font-size: 14px;
    }

    .nav-list .nav-dropdown-menu a:hover,
    .nav-list .nav-dropdown-menu a.active {
        color: #0E2A4A !important;
        background: transparent;
    }

    /* Mobile drawer only: flip Maps/Join chevron when open */
    .nav-list .nav-chevron {
        transition: transform 0.2s ease;
    }

    .nav-list .has-dropdown.is-open > .nav-dropdown-toggle .nav-chevron {
        transform: rotate(180deg);
    }

    .hero.hero-header-only .menu-toggle-bar {
        background: var(--navy);
    }
}
