/* 모바일 하단 고정 버튼 스타일 */

.mobile-fixed-buttons {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 9999;
    display: none;
    
    border-radius: 50px;
}

/* 모바일에서만 표시 */
@media screen and (max-width: 768px) {
    .mobile-fixed-buttons {
        display: flex;
    }
    
    /* 하단 고정 버튼 공간 확보 */
    body {
        padding-bottom: 0px;
    }
}

.fixed-buttons-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border-radius: 50px;
}

.fixed-btn {
    flex: 1;
    height: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    will-change: transform, box-shadow;
    box-shadow: 0 5px 5px rgba(0,0,0,0.5);
}

/* Star Border Glow 테두리 전용 (내용은 투명, 외곽선만) */
.fixed-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px; /* 테두리 두께 */
    border-radius: inherit;
    background: linear-gradient(120deg,#ffdc3c,#fff1a8,#ffdc3c,#ffa800);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; /* Safari/Chromium */
    mask-composite: exclude; /* Firefox */
    animation: fixedBtnBorderFlow 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}


@keyframes fixedBtnBorderFlow {
    0% { background-position: 0% 50%; filter: drop-shadow(0 0 2px #ffdc3c) drop-shadow(0 0 6px #ffdc3c); }
    50% { background-position: 200% 50%; filter: drop-shadow(0 0 4px #ffe86b) drop-shadow(0 0 10px #ffe86b); }
    100% { background-position: 400% 50%; filter: drop-shadow(0 0 2px #ffdc3c) drop-shadow(0 0 6px #ffdc3c); }
}

@keyframes fixedBtnStars {
    0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 2px #fff6b3); }
    50% { opacity: 0.5; transform: scale(1.03); filter: drop-shadow(0 0 5px #ffffff); }
}

/* 모션 최소화 환경에서 애니메이션 제거 */
@media (prefers-reduced-motion: reduce) {
    .fixed-btn::before, .fixed-btn::after { animation: none; filter:none; }
}


/* 터치/활성 상호작용: 살짝 눌림 & 그림자 반응 */
.fixed-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

/* 시선 유도 (초기 미상호작용) */
.mobile-fixed-buttons.mf-attention .fixed-btn {
    animation: mfAttention 1.8s ease-in-out infinite;
}

@keyframes mfAttention {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-3px) scale(1.035); }
    55% { transform: translateY(-3px) scale(1.035); }
}

/* 모션 최소화 환경 존중 */
@media (prefers-reduced-motion: reduce) {
    .mobile-fixed-buttons.mf-attention .fixed-btn { animation: none; }
}

/* 대표번호 연결 버튼 */
.call-btn {
    background: var(--primary-color);
    color: var(--text-white);
    position: relative;
    border-radius: 20px 0px 0px 20px;
}

/* 대표번호 버튼 위 특별혜택 말풍선 */
.call-btn .special-offer-bubble {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
    animation: offerPulse 2s infinite;
    z-index: 10001;
    text-align: center;
    line-height: 1.2;
}

.call-btn .special-offer-bubble::before {
    content: '🎁선착순 한정🎁';

    font-size: 12px;
}

.call-btn .special-offer-bubble:after {
    content: '';
    position: absolute;
    top: 98%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ff4757;
}

/* 특별혜택 말풍선 표시 */
.call-btn .special-offer-bubble.show {
    opacity: 1;
    visibility: visible;
    animation: offerPulse 2s infinite, offerSlideIn 0.5s ease;
}

/* 모델하우스 섹션에서 숨김 */
.model-house-section .call-btn .special-offer-bubble,
.mobile-model-house-form .call-btn .special-offer-bubble {
    display: none !important;
}

/* 특별혜택 펄스 효과 */
@keyframes offerPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
    }
}

/* 특별혜택 등장 애니메이션 */
@keyframes offerSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.8);
    }
    60% {
        opacity: 0.9;
        transform: translateX(-50%) translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}



/* 위치안내 버튼 */
.location-btn {
    background: var(--accent-color);
    color: var(--text-white);
    position: relative;
    border-radius:  0px 20px 20px 0px;
}


/* 말풍선 스타일 */
.bubble-tooltip {
    position: absolute;
    bottom: 60px;
    right: 50%;
    transform: translateX(50%);
    background: #015152;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: bubblePulse 2s infinite;
    z-index: 10001;
}

.bubble-tooltip:after {
    content: '';
    position: absolute;
    top: 98%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #015152;
}

/* 말풍선 표시 */
.bubble-tooltip.show {
    opacity: 1;
    visibility: visible;
    animation: bubblePulse 2s infinite, bubbleSlideIn 0.5s ease;
}

/* 펄스 효과 애니메이션 */
@keyframes bubblePulse {
    0%, 100% {
        transform: translateX(50%) scale(1);
    }
    50% {
        transform: translateX(50%) scale(1.05);
    }
}

/* 말풍선 등장 애니메이션 */
@keyframes bubbleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
}

/* 버튼 아이콘 스타일 */
.fixed-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* 리플 효과 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* 진동 효과 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* 로딩 상태 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

