﻿/* =========================================================
   Hondenopvakantie - header / menu (nieuwe stijl)
   Geladen in HondenBootstrapped.master, na hondenopvakantieV2.css.
   ========================================================= */

/* ---------- Balk ---------- */
/* Oude .navbar-regels uit hondenopvakantieV2.css (offset onder de oude
   witte mobiele balk, transparantie) mogen de nieuwe header niet raken. */
header.hopv-nav nav.hopv-nav-bar.navbar.fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}
.hopv-nav .hopv-nav-bar.navbar {
    background: #fff;
    padding: 0;
    box-shadow: 0 1px 0 #e4dfd0, 0 4px 16px rgba(0,0,0,.04);
    transition: background-color .25s ease, box-shadow .25s ease;
}
.hopv-nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 8px 32px;
    gap: 8px 12px;
}

.hopv-nav-brand { display: flex; align-items: center; flex: 0 0 auto; }
.hopv-nav-logo { height: 64px; width: auto; display: block; transition: opacity .25s ease; }

.hopv-nav-ico {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Menu-items ---------- */
.hopv-nav .navbar-nav { align-items: center; gap: 2px; }
.hopv-nav .navbar-nav .nav-link,
.hopv-nav .navbar-light .navbar-nav .nav-link {
    font-size: 17px;
    font-weight: 600;
    color: #2b2b2b;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease;
}
.hopv-nav .navbar-nav .nav-link:hover,
.hopv-nav .navbar-nav .nav-link:focus,
.hopv-nav .navbar-nav .show > .nav-link {
    color: #b94c03;
    background: #faf7f2;
}
.hopv-nav .dropdown-toggle::after {
    margin-left: .45em;
    vertical-align: .18em;
    border-top-width: .35em;
    border-right-width: .3em;
    border-left-width: .3em;
}
.hopv-nav .navbar-nav img { height: 20px; width: auto; }

/* ---------- Dropdowns ---------- */
.hopv-nav .dropdown-menu {
    border: 1px solid #e4dfd0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    padding: 8px;
    margin-top: 8px;
}
.hopv-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    color: #2b2b2b;
}
.hopv-nav .dropdown-item:hover,
.hopv-nav .dropdown-item:focus { background: #faf7f2; color: #b94c03; }

/* ---------- Megamenu ---------- */
.hopv-nav .megamenu {
    padding: 8px 12px;
}
.hopv-nav .megamenu h5 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    color: #b94c03;
    margin: 20px 0 8px 0;
}
.hopv-nav .megamenu [class*="col-"] > h5:first-child,
.hopv-nav .megamenu [class*="col-"] > hr:first-child + h5 { margin-top: 6px; }
.hopv-nav .megamenu h5 a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2b2b2b;
    text-decoration: none;
}
.hopv-nav .megamenu h5 a:hover { color: #b94c03; }
.hopv-nav .megamenu h5 img { height: 20px; width: auto; border-radius: 3px; }

.hopv-nav .megamenu-list { margin: 0; padding: 0; }
.hopv-nav .megamenu-list-link {
    display: block;
    padding: 4px 0;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    transition: color .15s ease, padding-left .15s ease;
}
.hopv-nav .megamenu-list-link:hover { color: #b94c03; padding-left: 4px; }
.hopv-nav .badge-success {
    background: #fbeee4;
    color: #b94c03;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
}

/* ---------- Rechts: Trustpilot, favorieten, account, menuknop ---------- */
.hopv-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.hopv-nav-trust { flex: 0 0 auto; width: 250px; }

.hopv-nav-action,
.hopv-nav a.hopv-nav-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.hopv-nav a.hopv-nav-action:hover { background: #faf7f2; color: #b94c03; text-decoration: none; }
#mijninfobutton .hopv-nav-ico { color: #b94c03; }

.hopv-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #b94c03;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.hopv-nav-count:empty { display: none; }

.hopv-nav-account { height: 30px; width: auto; display: block; }

.hopv-nav-action.is-pulse { animation: hopvNavPulse .9s ease; }
@keyframes hopvNavPulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.15); background: #fbeee4; }
    100% { transform: scale(1); }
}

.hopv-nav .hopv-nav-toggler {
    display: none;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e4dfd0;
    border-radius: 10px;
    padding: 0;
    background: #fff;
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 600;
}
.hopv-nav .hopv-nav-toggler:focus { outline: 3px solid rgba(185,76,3,.25); outline-offset: 1px; }

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
    .hopv-nav .navbar-collapse { order: 2; flex: 1 1 auto; }
    .hopv-nav-trust { order: 3; }
    .hopv-nav-actions { order: 4; margin-left: 4px; }

    /* Megamenu: breed paneel, gecentreerd onder de balk */
    .hopv-nav .navbar-nav .dropdown-menu.megamenu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(1200px, calc(100vw - 32px));
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 16px 24px 24px 24px;
    }

    /* Homepage/zoekpagina's: transparant boven de foto tot je scrolt */
    .hopv-nav-hero.is-top .hopv-nav-bar.navbar {
        background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,0));
        box-shadow: none;
    }
    .hopv-nav-hero.is-top .hopv-nav-logo { opacity: 0; visibility: hidden; }
}

@media (min-width: 992px) {
    .hopv-nav-inner { flex-wrap: nowrap; }
    .hopv-nav .navbar-collapse { min-width: 0; }
}
@media (max-width: 1199.98px) {
    .hopv-nav-trust { width: 210px; }
    .hopv-nav .navbar-nav .nav-link { padding: 10px 9px; }
    .hopv-nav-logo { height: 56px; }
@media (min-width: 992px) and (max-width: 1099.98px) {
    .hopv-nav-inner { padding-left: 12px; padding-right: 12px; gap: 8px; }
    .hopv-nav .navbar-nav .nav-link { font-size: 16px; padding: 10px 7px; }
    .hopv-nav-trust { width: 180px; }
    .hopv-nav-logo { height: 50px; }
}
}

/* ---------- Mobiel / tablet ----------
   2 kolommen: logo links (over 2 rijen),
   rechts: rij 1 hartje/account/menu, rij 2 Trustpilot.
   Het uitgeklapte menu staat daaronder over de volle breedte. */
@media (max-width: 991.98px) {
    .hopv-nav-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand actions"
            "brand trust"
            "menu  menu";
        align-items: center;
        column-gap: 12px;
        row-gap: 2px;
        padding: 6px 12px;
    }
    .hopv-nav-brand { grid-area: brand; }
    .hopv-nav-logo { height: 84px; }

    .hopv-nav-actions { grid-area: actions; justify-self: end; margin-left: 0; }
    .hopv-nav .hopv-nav-toggler { display: inline-flex; }

    .hopv-nav-trust {
        grid-area: trust;
        justify-self: end;
        align-self: start;
        width: 210px;
        max-width: 100%;
    }

    .hopv-nav .navbar-collapse {
        grid-area: menu;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        border-top: 1px solid #e4dfd0;
        margin-top: 6px;
    }
    .hopv-nav .navbar-nav { align-items: stretch; padding: 8px 0 12px 0; }
    .hopv-nav .navbar-nav .nav-link { font-size: 18px; padding: 12px 10px; }
    .hopv-nav .dropdown-menu {
        border: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 0 0 0 8px;
        background: transparent;
    }
    .hopv-nav .megamenu h5 { margin-top: 12px; }
}
@media (max-width: 360px) {
    .hopv-nav-logo { height: 70px; }
    .hopv-nav-trust { width: 180px; }
}
