/*
 * site-layout.css
 * CSS kustom untuk layout utama Hotel SMK
 */

/* =============================================
   TOPBAR
   ============================================= */

.ht-topbar {
    background: #ff9800;
    padding: 10px 0;
}

.ht-topbar-kiri p {
    color: #ffffff;
    margin-bottom: 0;
}

.ht-topbar-kanan {
    text-align: right;
}

/* Label notifikasi (pengganti badge) */
.ht-notif {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #c0392b;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

/* =============================================
   AKUN HOVER (dropdown login)
   ============================================= */

.ht-tamu-link {
    display: inline-block;
    margin-right: 25px;
}

.ht-tamu-link a {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 28px;
    display: inline-block;
}

.ht-tamu-link a:last-child {
    margin-right: 0;
}

.ht-akun-hover {
    display: inline-block;
    position: relative;
}

.ht-akun-hover:hover .ht-top-sub,
.ht-akun-hover:hover .ht-akun-sub {
    top: 24px;
    opacity: 1;
    visibility: visible;
}

.ht-akun-nama {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    cursor: pointer;
}

.ht-akun-nama i {
    font-size: 20px;
    position: relative;
    top: 3px;
    right: 2px;
}

/* Dropdown di topbar (desktop header) */
.ht-top-sub {
    background: #ffffff;
    display: inline-block;
    padding: 2px 0;
    position: absolute;
    right: 0;
    left: -100px;
    top: 44px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    z-index: 9;
    -webkit-box-shadow: 0 10px 20px rgba(0,0,0,.1);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.ht-top-sub li {
    list-style: none;
    font-size: 13px;
    color: #111111;
    padding: 4px 15px;
    cursor: pointer;
    white-space: nowrap;
}

.ht-top-sub li a {
    color: #111111;
}

/* Dropdown di sidemenu (mobile) */
.ht-akun-sub {
    background: #111111;
    display: inline-block;
    padding: 2px 0;
    position: absolute;
    left: 0;
    top: 44px;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    z-index: 3;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.ht-akun-sub li {
    list-style: none;
    font-size: 13px;
    color: #ffffff;
    padding: 4px 15px;
    cursor: pointer;
}

.ht-akun-sub li a {
    color: #ffffff;
}

/* =============================================
   HEADER UTAMA
   ============================================= */

.ht-header {
    background: #ffffff;
}

/* =============================================
   LOGO
   ============================================= */

.ht-logo {
    padding: 30px 0;
}

.ht-logo a {
    display: inline-block;
}

/* =============================================
   NAVIGASI UTAMA
   ============================================= */

.ht-nav {
    text-align: center;
    padding: 26px 0 25px;
}

.ht-nav ul li {
    list-style: none;
    display: inline-block;
    margin-right: 45px;
    position: relative;
}

.ht-nav ul li.ht-aktif a::after {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.ht-nav ul li:hover a::after {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.ht-nav ul li:hover .ht-subnav {
    top: 32px;
    opacity: 1;
    visibility: visible;
}

/* Pastikan garis merah ::after TIDAK muncul ketika li yang punya subnav di-hover */
.ht-nav ul li:hover > a::after {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

.ht-nav ul li:last-child {
    margin-right: 0;
}

.ht-nav ul li a {
    font-size: 18px;
    color: #111111;
    display: block;
    font-weight: 600;
    position: relative;
    padding: 3px 0;
}

.ht-nav ul li a::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #e53637;
    content: "";
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

/* Sub-navigasi (dropdown menu) */
.ht-subnav {
    position: absolute;
    left: 0;
    top: 56px;
    width: 150px;
    background: #111111;
    text-align: left;
    padding: 5px 0;
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

/* Sub-navigasi link — specificity lebih tinggi dari .ht-nav ul li a */
.ht-nav ul li .ht-subnav li {
    display: block;
    margin-right: 0;
}

.ht-nav ul li .ht-subnav li a {
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
    padding: 5px 20px;
    text-transform: capitalize;
    display: block;
}

.ht-nav ul li .ht-subnav li a:hover {
    color: #ffcc80;
}

/* Sembunyikan garis merah di dalam subnav */
.ht-nav ul li .ht-subnav li a::after {
    display: none !important;
}

/* =============================================
   IKON CARI (kanan header)
   ============================================= */

.ht-nav-cari {
    text-align: right;
    padding: 30px 0;
}

.ht-nav-cari a {
    display: inline-block;
    margin-right: 26px;
    position: relative;
}

.ht-nav-cari a:last-child {
    margin-right: 0;
}

/* =============================================
   TOMBOL HAMBURGER (mobile)
   ============================================= */

.ht-toggle {
    display: none;
}

/* =============================================
   SIDEMENU / PANEL SAMPING (mobile)
   ============================================= */

.ht-sidemenu {
    display: none;
}

.ht-layer-bg {
    display: none;
}

/* =============================================
   RESPONSIVE — Tablet dan Mobile
   ============================================= */

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .ht-nav ul li {
        margin-right: 38px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ht-nav ul li {
        margin-right: 10px;
    }
    .ht-nav-cari a {
        margin-right: 10px;
    }
    .ht-topbar {
        display: none;
    }
}

@media only screen and (max-width: 767px) {

    .ht-toggle {
        display: block;
        font-size: 22px;
        color: #111111;
        height: 35px;
        width: 35px;
        line-height: 35px;
        text-align: center;
        border: 1px solid #111111;
        border-radius: 2px;
        cursor: pointer;
        position: absolute;
        right: 15px;
        top: 25px;
    }

    .ht-layer-bg {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: rgba(0,0,0,.7);
        content: "";
        z-index: 98;
        -webkit-transition: all .5s;
        -o-transition: all .5s;
        transition: all .5s;
        visibility: hidden;
    }

    .ht-layer-bg.aktif {
        visibility: visible;
    }

    .ht-sidemenu {
        position: fixed;
        left: -300px;
        width: 300px;
        height: 100%;
        background: #ffffff;
        padding: 50px 20px 30px 30px;
        display: block;
        z-index: 99;
        overflow-y: auto;
        -webkit-transition: all .5s;
        -o-transition: all .5s;
        transition: all .5s;
        opacity: 0;
    }

    .ht-sidemenu.aktif {
        opacity: 1;
        left: 0;
    }

    .ht-akun-wrap {
        text-align: center;
        margin-bottom: 30px;
    }

    .ht-tamu-link {
        display: inline-block;
        margin-right: 25px;
    }

    .ht-tamu-link a {
        color: #111111;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-right: 16px;
        display: inline-block;
        font-weight: 600;
    }

    .ht-akun-hover {
        display: inline-block;
        position: relative;
    }

    .ht-akun-hover:hover .ht-akun-sub {
        top: 24px;
        opacity: 1;
        visibility: visible;
    }

    .ht-akun-nama {
        color: #111111;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: inline-block;
        cursor: pointer;
        font-weight: 600;
    }

    .ht-side-cari {
        text-align: center;
        margin-bottom: 25px;
    }

    .ht-side-cari a {
        display: inline-block;
        margin-right: 26px;
        position: relative;
    }

    .ht-topbar {
        display: none;
    }

    .ht-header .container {
        position: relative;
    }

    .ht-nav {
        display: none;
    }

    .ht-nav-cari {
        display: none;
    }
}
