/* =============================================================
   DBI NAVIGATION SYSTEM — dbi-nav.css
   Top bar, brand row, main nav, dropdowns, mobile drawer
   ============================================================= */

/* ---- TOP BAR ---- */
.dbi-top-bar {
    background: #1a3a5c;
    color: #fff;
    font-size: 0.84rem;
    padding: 7px 0;
    border-bottom: 2px solid #f49b1c;
    position: relative;
    z-index: 1100;
}
.dbi-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.dbi-top-bar__contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.dbi-top-bar__contact a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.dbi-top-bar__contact a:hover { color: #f49b1c; }
.dbi-top-bar__contact a i { margin-right: 4px; color: #f49b1c; }
.dbi-topbar-sep { color: rgba(255,255,255,.35); }
.dbi-top-bar__prospectus strong { color: #ffe380; }

/* Quick Links dropdown */
.dbi-top-bar__right { position: relative; }
.dbi-quick-links-btn {
    background: #f49b1c;
    border: none;
    border-radius: 3px;
    color: #111;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 12px;
    white-space: nowrap;
    transition: background .2s;
}
.dbi-quick-links-btn:hover { background: #ffb336; }
.dbi-quick-links-drop {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid #f49b1c;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    display: none;
    list-style: none;
    min-width: 220px;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 2000;
}
.dbi-quick-links-drop li a {
    border-bottom: 1px solid #f4f4f4;
    color: #333;
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 9px 14px;
    text-decoration: none;
    transition: background .15s;
}
.dbi-quick-links-drop li a:hover { background: #fff8e7; color: #09254b; }
.dbi-quick-links-wrap.open .dbi-quick-links-drop { display: block; }

/* ---- BRAND ROW ---- */
.dbi-brand-row {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    position: relative;
    z-index: 1050;
}
.dbi-brand-row__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.dbi-brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.dbi-brand-mark img {
    height: 68px;
    width: 68px;
    object-fit: contain;
}
.dbi-brand-mark strong {
    display: block;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #09254b;
    line-height: 1.1;
}
.dbi-brand-mark small {
    display: block;
    color: #777;
    font-size: 0.82rem;
    margin-top: 3px;
}

/* Site Search */
.dbi-site-search form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}
.dbi-site-search input {
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 0.9rem;
    min-width: 200px;
    background: #fafafa;
}
.dbi-site-search button {
    background: #2c4a70;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 16px;
    font-size: 1rem;
    height: 40px;
    transition: background .2s;
}
.dbi-site-search button:hover { background: #f49b1c; }

/* ---- MAIN NAV ---- */
.dbi-main-nav {
    background: #09254b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.dbi-main-nav__inner {
    display: flex;
    align-items: stretch;
    min-height: 50px;
    position: relative;
}
.dbi-menu-label {
    background: #f49b1c;
    color: #111;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0 18px;
    display: flex;
    align-items: center;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.dbi-nav-list {
    display: flex;
    list-style: none;
    flex: 1;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.dbi-nav-list > li > a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0 13px;
    height: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .2px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.dbi-nav-list > li > a:hover,
.dbi-nav-list > li > a.nav-active {
    background: #f49b1c;
    color: #111;
}

/* ---- DROPDOWNS ---- */
.dbi-has-drop { position: relative; }
.dbi-drop {
    background: #fff;
    border-top: 3px solid #f49b1c;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
    display: none;
    left: 0;
    list-style: none;
    min-width: 230px;
    position: absolute;
    top: 100%;
    z-index: 1500;
    padding: 4px 0;
}
.dbi-drop li a {
    border-bottom: 1px solid #f4f4f4;
    color: #333;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 15px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.dbi-drop li a:hover { background: #fff7e0; color: #09254b; }

/* Sub-dropdowns */
.dbi-drop--sub {
    left: 100%;
    top: 0;
    border-top: none;
    border-left: 3px solid #f49b1c;
}
.dbi-has-drop--sub { position: relative; }
.dbi-has-drop--sub > a { justify-content: space-between; }

/* Show on hover */
.dbi-nav-list > li.dbi-has-drop:hover > .dbi-drop,
.dbi-nav-list > li.dbi-has-drop:focus-within > .dbi-drop,
.dbi-drop li.dbi-has-drop--sub:hover > .dbi-drop--sub,
.dbi-drop li.dbi-has-drop--sub:focus-within > .dbi-drop--sub {
    display: block;
}

/* Book Homestay Button */
.dbi-homestay-btn {
    background: #f49b1c;
    color: #111;
    font-weight: 900;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.dbi-homestay-btn:hover { background: #ffb336; color: #111; }

/* ---- HAMBURGER ---- */
.dbi-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin-left: auto;
}
.dbi-hamburger span {
    background: #fff;
    border-radius: 2px;
    display: block;
    height: 3px;
    width: 26px;
    transition: transform .3s, opacity .3s;
}
.dbi-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.dbi-hamburger.open span:nth-child(2) { opacity: 0; }
.dbi-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- MOBILE OVERLAY ---- */
.dbi-mobile-overlay {
    background: rgba(0,0,0,.55);
    display: none;
    inset: 0;
    position: fixed;
    z-index: 1800;
}
.dbi-mobile-overlay.active { display: block; }

/* ---- MOBILE DRAWER ---- */
.dbi-mobile-drawer {
    background: #09254b;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 320px;
    overflow-y: auto;
    position: fixed;
    right: -340px;
    top: 0;
    transition: right .32s ease;
    width: 90vw;
    z-index: 1900;
}
.dbi-mobile-drawer.open { right: 0; }

.dbi-mobile-drawer__head {
    align-items: center;
    background: #071e3d;
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
}
.dbi-mobile-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}
.dbi-mobile-drawer__body {
    display: flex;
    flex-direction: column;
    padding: 12px 0 30px;
    gap: 0;
}
.dbi-mobile-drawer__body a {
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #eee;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 22px;
    text-decoration: none;
    transition: background .15s;
}
.dbi-mobile-drawer__body a:hover { background: rgba(244,155,28,.15); color: #f49b1c; }
.dbi-mobile-drawer__body details summary {
    color: #eee;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    list-style: none;
    padding: 13px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
}
.dbi-mobile-drawer__body details summary::after { content: '▾'; }
.dbi-mobile-drawer__body details[open] summary::after { content: '▴'; }
.dbi-mob-sub {
    background: rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
}
.dbi-mob-sub a {
    font-size: 0.87rem;
    padding-left: 36px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: #ccc;
}
.dbi-mob-homestay {
    background: #f49b1c !important;
    color: #111 !important;
    font-weight: 900 !important;
    margin: 16px 16px 0;
    border-radius: 3px;
    text-align: center;
}

/* ---- MAIN CONTENT OFFSET (sticky nav) ---- */
main { padding-top: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .dbi-nav-list > li > a { padding: 0 9px; font-size: 0.82rem; }
    .dbi-homestay-btn { padding: 0 10px; font-size: 0.78rem; }
}
@media (max-width: 900px) {
    .dbi-nav-list, .dbi-menu-label, .dbi-homestay-btn { display: none; }
    .dbi-hamburger { display: flex; }
    .dbi-top-bar__inner { flex-direction: column; gap: 6px; text-align: center; }
    .dbi-top-bar__contact { justify-content: center; }
    .dbi-brand-row__inner { flex-direction: column; gap: 12px; }
    .dbi-site-search input { min-width: 160px; }
}
@media (max-width: 480px) {
    .dbi-brand-mark strong { font-size: 1.3rem; }
    .dbi-brand-mark img { height: 48px; width: 48px; }
    .dbi-top-bar__contact { flex-direction: column; gap: 4px; }
    .dbi-topbar-sep { display: none; }
}
