@CHARSET "UTF-8";

/* Nhóm nút bên phải: đăng nhập, đăng xuất... */
.button.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
	.button.navbar-right {
	    gap: 5px;
	}
	
	.button.navbar-right .nav-button {
	    font-size: 14px;
	}
}

.fab-container {
    position: fixed;
    right: 5px;
    bottom: 55px;
    z-index: 999;
}

/* NÚT CHÍNH */
.fab-main {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, #00A859, #006B3F);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 22px rgba(3,53,79,.45);
    font-size: 22px;
    cursor: pointer;
}

/* NHÓM NÚT */
.fab-group {
    position: absolute;
    bottom: 66px;
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .25s ease;
}

.fab-container.open .fab-group {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* NÚT CON */
.fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: #008C44;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    font-size: 18px;
}

/* MÀU RIÊNG */
.fab-zalo { color:#008C44; }
.fab-phone { color:#006B3F; }
.fab-scroll { color:#008C44; }

/* Chỉ áp dụng menu bung cho mobile */
@media(min-width:992px){
    .fab-group{
        opacity:1;
        pointer-events:auto;
        transform:none;
        position:static;
        flex-direction:column;
        margin-bottom:8px;
    }
    .fab-main{
        display:none;
    }
}

  /* Phone ring */
  .fab-phone { animation: ring 1.5s infinite ease-in-out; }
  @keyframes ring {
    0% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
  }

  /* Zalo pulse */
  .fab-zalo { animation: zaloPulse 2s infinite ease-in-out; }
  @keyframes zaloPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }

  /* Wave */
  .fab-phone::after, .fab-zalo::after {
    content:"";
    position:absolute;
    top:50%; left:50%; width:100%; height:100%;
    transform:translate(-50%,-50%) scale(1);
    border-radius:50%; 
    background:rgba(0,140,68,0.35);
    animation:wave 2.5s infinite ease-out;
    pointer-events:none;
  }
  @keyframes wave {
    0% { transform: translate(-50%, -50%) scale(1); opacity:0.6; }
    80% { transform: translate(-50%, -50%) scale(1.5); opacity:0; }
    100% { opacity:0; }
  }

  /* Tooltip (desktop only) */
  .tooltip-number {
    position:absolute;
    top:50%; right:60px;
    transform:translateY(-50%);
    padding:6px 12px;
    background:#fff;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
    border-radius:6px;
    font-size:14px;
    opacity:0;
    pointer-events:none;
    transition:0.25s;
    white-space:nowrap;
  }

  @media (hover:hover) and (pointer:fine) {
    .fab-phone:hover + .tooltip-number {
      opacity:1; right:70px;
    }
  }
  
.scroll-top-btn {
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(180deg, #00A859, #006B3F) !important;
  border-radius: 50% !important;

  bottom: 10px !important;
  right: 8px !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  padding: 0 !important;
  margin: 0 !important;
  border: none !important;

  text-align: center !important;
  line-height: normal !important;
  box-sizing: content-box !important;

  opacity: 1;
  visibility: visible;
  cursor: pointer;

  z-index: 999999999 !important;
}

.scroll-top-btn svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: content-box !important;
}

.scroll-top-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  background: #006B3F !important;
}

/* container logo */
.logo-companion {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 1px 20px;
    position: relative;
}

/* 3 tòa nhà 3D */
.companion-mark {
    position: relative;
    width: 36px;
    height: 36px;
    perspective: 80px;
}

.companion-mark i {
    position: absolute;
    bottom: 0;
    width: 6px;
    border-radius: 2px 2px 1px 1px;
    transform-style: preserve-3d;
    transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
    z-index: 1;
}

.companion-mark i::after {
    content:"";
    position: absolute;
    top: 0;
    left: 100%;
    width: 4px;
    height: 100%;
    border-radius: 0 2px 0 0;
    transform: skewY(-15deg);
}

/* tòa nhà 1 – thấp */
.companion-mark i:nth-child(1) {
    left: 0;
    height: 73%;
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    transform: rotateY(-12deg);
}
.companion-mark i:nth-child(1)::after {
    background: linear-gradient(to bottom, #e6e6e6 0%, #cccccc 100%);
}

/* tòa nhà 2 – cao nhất */
.companion-mark i:nth-child(2) {
    left: 14px;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    transform: rotateY(-12deg);
}
.companion-mark i:nth-child(2)::after {
    background: linear-gradient(to bottom, #e6e6e6 0%, #cccccc 100%);
}

/* tòa nhà 3 – trung bình */
.companion-mark i:nth-child(3) {
    right: 0;
    height: 73%;
    background: linear-gradient(to bottom, #f5f5f5 0%, #d9d9d9 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
    transform: rotateY(-12deg);
}
.companion-mark i:nth-child(3)::after {
    background: linear-gradient(to bottom, #d9d9d9 0%, #bfbfbf 100%);
}

/* -----------------------
   TEXT
------------------------ */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1.4px;

    /* đổi sang trắng */
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f2f2f2 55%,
        #d9d9d9 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        1px 1px 0 #bfbfbf,
        2px 2px 2px rgba(0,0,0,.35),
        0 0 6px rgba(255,255,255,.4);

    transition: all .3s ease;
}

/* hover */
.logo-companion:hover .logo-name {
    text-shadow: 0 0 8px rgba(255,255,255,.7);
}

.logo-companion:hover .companion-mark i:nth-child(1) {
    transform: translateY(-3px) rotateY(-12deg);
    filter: brightness(1.1);
}

.logo-companion:hover .companion-mark i:nth-child(2) {
    transform: translateY(-6px) rotateY(-12deg);
    filter: brightness(1.25);
    box-shadow: 0 6px 14px rgba(255,255,255,.4);
}

.logo-companion:hover .companion-mark i:nth-child(3) {
    transform: translateY(-4px) rotateY(-12deg);
    filter: brightness(1.1);
}

.logo-sub {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.0px;
    color: #fff;
}

/* responsive */
@media (max-width: 576px) {
    .logo-name {
        font-size: 18px;
        letter-spacing: 1.0px;
    }
    
    .logo-sub {
        margin-top: 3px;
        font-size: 8px;
    }
}

/* hai nét chữ A 3D */
.companion-mark::before,
.companion-mark::after {
    content: "";
    position: absolute;
    bottom: 34%;
    width: 7px;
    height: 35px;
    z-index: 3;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f2f2f2 55%,
        #d9d9d9 100%
    );

    transform-origin: top center;
    transition: transform .3s ease, filter .3s ease;

    box-shadow:
        4px 0 0 #bfbfbf,
        3px 4px 6px rgba(0,0,0,.45);

    border-radius: 1px;
}

/* nét trái */
.companion-mark::before {
    left: 50%;
    transform:
        translateX(-50%)
        rotate(55deg)
        rotateY(-18deg)
        skewY(-6deg);
}

/* nét phải */
.companion-mark::after {
    left: 50%;
    transform:
        translateX(-50%)
        rotate(-55deg)
        rotateY(18deg)
        skewY(6deg);
}


/* ===============================
   MAIN MENU – LIGHT LUXURY
================================ */
/* Hover chữ */
.navbar-default .navbar-nav > li > a:hover {
    color: #2fd4aa;
    background: transparent;
}

/* Gạch dưới */
.navbar-default .navbar-nav > li > a::after {
    background: linear-gradient(90deg, #2fd4aa, #8ff0d2);
}

/* Menu đang mở */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #2fd4aa;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a.active::after {
    width: 70%;
}

/* Menu đang mở */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #ffd84d;
    background: transparent;
}

.main-nav > li > a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.35px;

    color: #222;
    padding: 22px 20px;
    position: relative;
    transition: all .3s ease;
}

/* underline vàng tinh tế */
.main-nav > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2fd4aa, #8ff0d2);
    transform: translateX(-50%);
    transition: width .3s ease;
}

/* hover */
.main-nav > li:hover > a {
    color: #ffffff;
}

.main-nav > li:hover > a::after {
    width: 60%;
}

/* ===============================
   DROPDOWN – THẺ NỔI CAO CẤP
================================ */
.dropdown-menu {
    border-radius: 10px;
    padding: 12px 0;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.35);
}

/* item dropdown */
.dropdown-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: #e6f2ef;
    padding: 10px 26px;
    transition: all .25s ease;
}

.dropdown-menu li a:hover {
    background: rgba(47,212,170,0.12);
    color: #2fd4aa;
    padding-left: 32px;
}

/* ===============================
   MEGA MENU – CHIA CỘT SANG
================================ */
/* =================================
   YAMM CORE
================================= */

.yamm .nav,
.yamm .collapse,
.yamm .dropup,
.yamm .dropdown {
    position: static;
}

.yamm .container {
    position: relative;
}

.yamm .dropdown.yamm-fw .dropdown-menu {
    left: 0;
    right: 0;
}


/* =================================
   MEGA MENU
================================= */

.yamm .dropdown-menu {
    left: auto;
    background: linear-gradient(135deg, #005c45, #00382b);
    border: none;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.yamm .yamm-content {
    padding: 28px 32px;
}

@media (max-width: 767px) {
    .yamm .yamm-content {
        padding: 15px 20px;
    }
}


/* =================================
   TITLE CỘT
================================= */

.navbar .yamm-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #ffd84d;
    margin-bottom: 14px;
    padding-bottom: 8px;
        color: #ffffff;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .navbar .yamm-content h5 {
        font-size: 14px;
    }
}


/* =================================
   LIST TRONG MEGA MENU
================================= */

.navbar .yamm-content ul {
    margin: 0;
    padding: 0;
}

.navbar .yamm-content ul li {
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0px 0;
}

.navbar .yamm-content ul li:last-child {
    border-bottom: none;
}

.navbar .yamm-content ul li a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #eaf6fc;
    transition: all 0.25s ease;
}

.navbar .yamm-content ul li a:hover {
    background: rgba(47,212,170,0.12);
    color: #2fd4aa;
    padding-left: 28px;
}

.navbar .yamm-content .banner {
    margin-bottom: 10px;
}


/* =================================
   SUB MENU (CẦN BÁN, CẦN THUÊ…)
================================= */

.ymm-sw .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 10px 0;
   background: linear-gradient(135deg, #005c45, #00382b);
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.yamm .ymm-sw .dropdown-menu {
    left: auto;
    right: auto;
}

.ymm-sw .dropdown-menu li {
    list-style: none;
        float: none;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ymm-sw .dropdown-menu li:last-child {
    border-bottom: none;
}

.ymm-sw .dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    font-weight: 500;
   color: #e6f2ef;
    transition: all 0.25s ease;
}

.ymm-sw .dropdown-menu li a:hover {
    background: rgba(47,212,170,0.12);
    color: #2fd4aa;
    padding-left: 28px;
}

/* ===============================
   CARET – MÀU VÀNG NHẸ
================================ */
.dropdown-toggle .caret {
    border-top-color: #2fd4aa;
}

/* ===============================
   FIX DROPDOWN MOBILE
================================ */

@media (max-width: 767px) {

    /* nền menu mobile */
    .navbar-default .navbar-collapse {
        background: linear-gradient(135deg, #005c45, #00382b);
        border-top: none;
    }

    /* link menu cấp 1 */
    .navbar-default .navbar-nav > li > a {
        color: #ffffff !important;
        opacity: 1 !important;
    }

    /* dropdown menu mobile */
    .navbar-default .navbar-nav .dropdown-menu {
        background: transparent;
        box-shadow: none;
        border: none;
        margin-left: auto;
    }

    /* item dropdown */
    .navbar-default .navbar-nav .dropdown-menu > li > a {
        color: #ffffff !important;
        font-weight: 500;
        opacity: 1 !important;
        padding: 10px 20px;
    }

    .navbar-default .navbar-nav .dropdown-menu > li > a:hover {
        background: rgba(255,255,255,0.08);
        color: #fff !important;
    }
}

/* FIX GẠCH VÀNG BỊ KẸT TRÊN MOBILE */
@media (max-width: 767px) {

    /* mặc định tắt gạch */
    .navbar-default .navbar-nav > li > a::after {
        width: 0 !important;
    }

    /* chỉ hiện gạch khi dropdown đang mở */
    .navbar-default .navbar-nav > li.open > a::after {
        width: 60% !important;
    }
}

/* FAVORITE trên header(Desktop) */
.header-favorite {
    float: right;
    margin-left: 12px;
}

.favorite-link {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    color: #e74c3c;
    font-size: 18px;
}

.favorite-link:hover {
    background: #e74c3c;
    color: #fff;
}

.favorite-count {
    position: absolute;
    top: -5px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    padding: 0 5px;
    text-align: center;
    font-weight: bold;
}
/* mặc định ẩn mobile */
@media (max-width: 767px) {
	.header-favorite{
    	display: none;
	}
}

/* ===== Chuông thông báo Desktop===== */
.header-notification {
    float: right;
    margin-left: 10px;
    margin-top: 6px;
}

.notification-link {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    color: #f39c12;
    font-size: 17px;
}

.notification-link:hover {
    background: #f39c12;
    color: #fff;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 10px;
    padding: 0 5px;
    text-align: center;
    font-weight: bold;
}

/* Mặc định ẩn trên mobile*/
@media (max-width: 767px) {
	.header-notification{
    	display: none;
	}
}

/* Favorite + notification trên mobile */
.mobile-header-notification {
    display: none;
}

/* mặc định ẩn (desktop) */
.mobile-header-favorite {
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {

    .navbar-header {
        display: flex;
        align-items: center;
    }
    
     /* LOGO: luôn bên trái */
    .navbar-brand {
        order: 0;
        margin-right: auto; /* 🔥 mấu chốt */
    }

    /* group phải (chuông + tim + menu) */
    .mobile-header-notification,
    .mobile-header-favorite {
        display: block;
    }

    .mobile-header-favorite {
        order: 1;
        margin-right: 10px;
    }
    
    .mobile-header-notification {
        order: 2;
        margin-right: 10px;
    }

    .navbar-toggle {
        order: 3;
        float: none;
        margin-right: 10px;
    }

    /* size icon */
    .mobile-header-notification .notification-link,
    .mobile-header-favorite .favorite-link {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 16px;
    }
}

/* ---------- Icon heart ---------- */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 122, 61, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all .25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.favorite-btn i {
    color: #fff;
    font-size: 16px;
    pointer-events: none;
}

.favorite-btn:hover {
    background: rgba(4, 70, 103, 1);
}

.favorite-btn.active {
    background: linear-gradient(135deg,#e53935,#ff6b6b);
    box-shadow: 0 4px 10px rgba(229,57,53,.45);
}

.favorite-btn.active i {
    color: #fff;
}

.favorite-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}
