@import "../public/hansSetting.less";

@home-mobile-space: 2rem;

@media (max-width: 991.98px) {
    ::placeholder {
        color: @deep_support_color !important;
    }
    .searchTemp {
        input {
            color: @deep_support_color !important;
            border-color: @deep_support_color !important;
        }
        .searchIcon {
            background-color: @deep_support_color;
        }
    }
    .mobileLink {
        width: auto !important;
    }
    //.regionLabel {
    //    background-color: @standard_color;
    //    span {
    //        padding: 1.8vmin 0;
    //    }
    //}
    .card-back {
        height: auto !important;
        .card-backtotal {
            height: auto !important;
        }
        .card-backimg {
            height: auto !important;
        }
    }
    #TravelBlog {
        .blogDiv {
            margin-bottom: 0 !important;
            .blogContentDiv {
                padding: 0 1rem 0 0 !important;
                margin-top: @home-mobile-space/2;
            }
        }
    }
    .infoLink span{
        padding: 0.5em 0;
    }

    .mobileBanner.contentStart {
        margin: 0 0 @mobile-menu-height 0;
    }

    #footer {
        .info_block {
            margin-bottom: 2rem !important;
        }
    }
}

::placeholder {
    color: @standard_color;
}

.opacity {
    opacity:1 !important;
}

input:focus {
    outline: none
}

.hide {
    display : none;
}

a:hover {
    /*滑鼠滑過變色*/
    color: @standard_color;
    /*去除連結底線*/
    text-decoration: none;
}

li>a {
    font-size: 0.3rem;
}

ul>span {
    font-size: 1rem;
}

ul>li,
ul>span {
    padding: 0.75rem 1rem !important;
}

.Slides {
    width: 100%;
}

a>span {
    font-size: 0.9rem;
}

.tourDesc {
    resize: none;
    border: 0;
    font-size: 0.9rem;
    color: @white_font_color;;
    &.title {
        font-size: 1.1rem;
        font-weight: bolder;
        color: @standard_color;
    }
}
/*淡入淡出 START*/

.card-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: 0.5s all ease;
    /*取消卡片框線*/
    border-style: none;
}

.card-front {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
}

.card-back {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2px;
    z-index: 1;
}
/*淡入淡出 END*/

#TravelBlog {
    .blogContent {
        color: white;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        box-sizing: border-box;
        text-align: justify;
        font-size: 0.9rem;
        line-height: 1.5rem;
    }
    .itemMore {
        font-size: 0.5rem;
        letter-spacing: 2px;
        text-decoration: underline;
        color: @standard_color;
        position: absolute;
        bottom: 1rem;
        right: 0;
    }
}

.mobileBanner {
    margin-top: @home-mobile-space;
    > .row {
        margin: 0 @home-mobile-space;
    }
    .search {
        .row div.col-11,div.col-1{
            padding: 0;
        }
    }
    .news {
        padding: 0 0.5rem;
        margin-top: @home-mobile-space;
        font-size: @mobile-font-size-ml;
        color: @deep_font_color;
        .title {
            color: @deep_font_color;
        }
    }
}

.infoLink span{
    padding: 0.2em 0;
}

.titleHint {
    display: block;
    width: @title-border-width;
    height: 3rem;
    background-color: #00ABCD;
}

@media (max-width:992px) {
    .titleDiv {
        margin-left: 5.4vmin !important;
    }
    .home-explore {
        .padding-adjust {
            padding: 0.5rem 2.5rem 0rem !important;
        }
    }
}
.titleDiv {
    display: flex;
    align-items: center;
    margin-left: 2rem;
    color: #00ABCD;
}

#recommend {
    .tagList {
        padding-top: 1.5rem;
        .tag img {
            height: 1.3rem;
            line-height: 1.7rem;
            max-width: 100%;
            margin-bottom: 0.2rem;
        }
    }
}

#tours-block {
    swiper-slide {
        padding: 0 0 3rem 0;
        margin: 0 8px;
        > div {
            border-radius: 4px;
            border: 1px solid #00ABCD;
            padding: 10px 12px 15px;
        }
    }
}

.home-explore-v2 {
    textarea:disabled {
        background-color: unset !important;
    }
    .planLink {
        height: 5rem;
        padding-bottom: 0.5rem;
        .title {
            font-size: 1.1rem;
            font-weight: bolder;
            line-height: 3rem;
            height: 3rem;
            color: @standard_color;
        }
        .link {
            overflow: hidden;
            background-color: unset !important;
            font-size: 0.8rem;
            height: 1rem;
            text-decoration:underline;
        }
    }
    .readMore{
        overflow: hidden;
        background-color: unset !important;
        font-size: 0.8rem;
        height: 1rem;
        text-decoration:underline;
        &.noBindPlan {
            margin-top: 1rem;
            padding-bottom: 5rem;
        }
    }
}
#TravelBlog {
    .blogDiv {
        padding: 2.5rem 1.7rem;
    }
}

/* Social Media Floating Button */
.social-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    
    .social-main-btn {
        background: linear-gradient(135deg, @standard_color, #0088aa);
        border-radius: 25px;
        padding: 12px 20px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 171, 205, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        
        i {
            color: white;
            font-size: 16px;
        }
        
        span {
            color: white;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
        }
        
        &:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(0, 171, 205, 0.4);
        }
    }
}

/* Social Media Modal */
.social-modal {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    width: 320px;
    max-height: 400px;
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
        
    .modal-header {
        background: @standard_color;
        color: white;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            padding: 0;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.3s ease;
            
            &:hover {
                background: rgba(255, 255, 255, 0.2);
            }
        }
    }
        
    .modal-content {
        padding: 15px;
        
        .social-link {
            display: flex;
            align-items: center;
            padding: 12px;
            margin-bottom: 8px;
            border-radius: 8px;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
            
            &:hover {
                transform: translateY(-1px);
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
            }
            
            .social-icon {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 12px;
                
                i {
                    color: white;
                    font-size: 18px;
                }
            }
            
            .social-text {
                flex: 1;
                
                h4 {
                    margin: 0 0 3px 0;
                    font-size: 14px;
                    font-weight: 600;
                    color: #333;
                }
                
                p {
                    margin: 0;
                    font-size: 12px;
                    color: #666;
                }
            }
            
            &.facebook .social-icon {
                background: #1877f2;
            }
            
            &.line .social-icon {
                background: #00c300;
            }
            
            &.youtube .social-icon {
                background: #ff0000;
            }
        }
    }
    &.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .social-float-container {
        bottom: 15px;
        right: 15px;
    }
    
    .social-modal {
        bottom: 65px;
        right: 15px;
        width: 280px;
        
        .modal-header {
            padding: 12px 15px;
            
            h3 {
                font-size: 14px;
            }
            
            .close-btn {
                width: 24px;
                height: 24px;
                font-size: 16px;
            }
        }
        
        .modal-content {
            padding: 12px;
            
            .social-link {
                padding: 10px;
                
                .social-icon {
                    width: 35px;
                    height: 35px;
                    margin-right: 10px;
                    
                    i {
                        font-size: 16px;
                    }
                }
                
                .social-text {
                    h4 {
                        font-size: 13px;
                    }
                    
                    p {
                        font-size: 11px;
                    }
                }
            }
        }
    }
}