/* 樓盤詳情頁面專用底部欄樣式 */
.property-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 8px;
}

.property-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    color: #666;
    font-family: inherit;
    gap: 6px;
}

/* 收藏按鈕 - 佔1/4 */
.favorite-btn {
    flex: 1;
}

/* 分享按鈕 - 佔1/4 */
.share-btn {
    flex: 1;
}

/* 聯絡代理按鈕 - 佔2/4 */
.contact-btn {
    flex: 2;
}

.property-nav-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-nav-btn.primary {
    background: linear-gradient(135deg, #86ebff, #86ebff);
    color: black;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.property-nav-btn.primary:hover {
    background: linear-gradient(135deg, #7a1bd2, #5a0ba2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.property-nav-icon {
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-nav-btn.primary .property-nav-icon {
    color: black;
}

.property-nav-btn:hover .property-nav-icon {
    transform: scale(1.1);
}

.property-nav-text {
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.property-nav-btn.primary .property-nav-text {
    color: black;
}

/* 收藏按鈕特殊樣式 */
.favorite-btn.active {
    color: #ff4757;
}

.favorite-btn.active .property-nav-icon {
    color: #ff4757;
    transform: scale(1.1);
}

/* 分享彈窗樣式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.share-modal.show {
    display: flex;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.share-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.share-option:hover {
    background: #f8f9fa;
    border-color: #86ebff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-icon.whatsapp {
    background: #25D366;
    color: white;
}

.share-icon.facebook {
    background: #1877F2;
    color: white;
}

.share-icon.copy {
    background: #666;
    color: white;
}

/* 響應式設計 */
@media (max-width: 767px) {
    .property-bottom-nav {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .property-nav-btn {
        padding: 10px 6px;
        min-height: 60px;
        gap: 4px;
    }
    
    .property-nav-icon {
        font-size: 18px;
    }
    
    .property-nav-text {
        font-size: 12px;
    }
    
    .share-modal-content {
        padding: 20px;
        max-width: 280px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .share-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .property-bottom-nav {
        padding: 8px 10px;
    }
    
    .property-nav-btn {
        padding: 8px 4px;
        min-height: 55px;
    }
    
    .property-nav-text {
        font-size: 11px;
    }
    
    .property-nav-icon {
        font-size: 16px;
    }
}

/* 為樓盤詳情頁面添加底部邊距，避免被底部欄遮擋 */
.property-detail-container {
    padding-bottom: 100px;
}

@media (max-width: 767px) {
    .property-detail-container {
        padding-bottom: 90px;
    }
}

@media (max-width: 480px) {
    .property-detail-container {
        padding-bottom: 85px;
    }
}

/* 在桌面端隱藏底部導航欄 */
@media (min-width: 768px) {
    .property-bottom-nav {
        display: none;
    }

    .property-detail-container {
        padding-bottom: 0;
    }
}
